1
0

wizard: some fixes

related: #5174
This commit is contained in:
SomberNight
2019-03-04 02:08:23 +01:00
parent ef1330df5d
commit 2da6692f73
4 changed files with 66 additions and 55 deletions

View File

@@ -119,7 +119,10 @@ class WalletStorage(PrintError):
if encryption is disabled completely (self.is_encrypted() == False),
or if encryption is enabled but the contents have already been decrypted.
"""
return bool(self.db.data)
try:
return bool(self.db.data)
except AttributeError:
return False
def is_encrypted(self):
"""Return if storage encryption is currently enabled."""