1
0

storage: add a sanity check

see #4803
This commit is contained in:
SomberNight
2018-10-26 19:31:20 +02:00
parent 78258a3a95
commit 416b687054

View File

@@ -175,6 +175,8 @@ class WalletStorage(JsonDB):
self.print_error('Failed to convert label to json format', key)
continue
self.data[key] = value
if not isinstance(self.data, dict):
raise WalletFileException("Malformed wallet file (not dict)")
# check here if I need to load a plugin
t = self.get('wallet_type')