improvements and bug fixes

This commit is contained in:
ingvar1995 2016-06-05 14:59:36 +03:00
parent d02ee92508
commit 672dafc701
4 changed files with 29 additions and 31 deletions

View file

@ -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()