mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-09 18:00:03 +01:00
fix boot bug
This commit is contained in:
@@ -57,7 +57,7 @@ class Data(object):
|
||||
|
||||
### persisted data (use default if doesnt exits):
|
||||
if not os.path.isfile(self.PATH_TO_CONJUR_DATA):
|
||||
os.remove(self.PATH_TO_DATA_OBJECTS + self.SETTINGS_JSON ) # keep the, in sync
|
||||
self.try_remove_file(self.PATH_TO_DATA_OBJECTS + self.SETTINGS_JSON ) # keep the, in sync
|
||||
copyfile(self.PATH_TO_DEFAULT_CONJUR_DATA, self.PATH_TO_CONJUR_DATA)
|
||||
|
||||
self.bank_data = [self.create_empty_bank()]
|
||||
@@ -405,3 +405,7 @@ class Data(object):
|
||||
else:
|
||||
return []
|
||||
|
||||
@staticmethod
|
||||
def try_remove_file(path):
|
||||
if os.path.exists(path):
|
||||
os.remove(path)
|
||||
|
||||
Reference in New Issue
Block a user