improvements and bug fixes
This commit is contained in:
parent
d02ee92508
commit
672dafc701
4 changed files with 29 additions and 31 deletions
|
|
@ -19,9 +19,9 @@ class Settings(Singleton, dict):
|
|||
with open(self.path) as fl:
|
||||
data = fl.read()
|
||||
inst = LibToxEncryptSave.get_instance()
|
||||
if inst.is_data_encrypted(data):
|
||||
data = inst.pass_decrypt(data)
|
||||
try:
|
||||
if inst.is_data_encrypted(data):
|
||||
data = inst.pass_decrypt(data)
|
||||
info = json.loads(data)
|
||||
except Exception as ex:
|
||||
info = Settings.get_default_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue