Remove only the tmp file

This commit is contained in:
SNoiraud 2022-01-05 13:10:34 +01:00 committed by Nick Hall
parent ab225c4542
commit f5c12991f5

View File

@ -1367,6 +1367,7 @@ class NoviceSelection(ManagedWindow, DbLoader):
) )
ftl.write(xml) ftl.write(xml)
ftl.close() ftl.close()
os.unlink(file_to_load)
dbid = config.get('database.backend') dbid = config.get('database.backend')
if self.nbb == 0: if self.nbb == 0:
self.dbmanager._create_new_db(dbid=dbid, title=name, self.dbmanager._create_new_db(dbid=dbid, title=name,
@ -1386,7 +1387,6 @@ class NoviceSelection(ManagedWindow, DbLoader):
dbstate=self.dbstate)) dbstate=self.dbstate))
break break
self.dbmanager.firsttime.set_sensitive(False) self.dbmanager.firsttime.set_sensitive(False)
os.unlink(file_to_load)
def load_database_selection(self, *arg): def load_database_selection(self, *arg):
""" """