fix plugin_loader in storage
This commit is contained in:
parent
776f09b50e
commit
00abc60cdc
|
@ -70,10 +70,6 @@ class WalletStorage(PrintError):
|
||||||
self.file_exists = os.path.exists(self.path)
|
self.file_exists = os.path.exists(self.path)
|
||||||
self.modified = False
|
self.modified = False
|
||||||
self.pubkey = None
|
self.pubkey = None
|
||||||
# check here if I need to load a plugin
|
|
||||||
t = self.get('wallet_type')
|
|
||||||
l = plugin_loaders.get(t)
|
|
||||||
if l: l()
|
|
||||||
|
|
||||||
def decrypt(self, s, password):
|
def decrypt(self, s, password):
|
||||||
# Note: hardware wallets should use a seed-derived key and not require a password.
|
# Note: hardware wallets should use a seed-derived key and not require a password.
|
||||||
|
@ -118,6 +114,10 @@ class WalletStorage(PrintError):
|
||||||
self.data = json.loads(s)
|
self.data = json.loads(s)
|
||||||
except:
|
except:
|
||||||
raise IOError("Cannot read wallet file '%s'" % self.path)
|
raise IOError("Cannot read wallet file '%s'" % self.path)
|
||||||
|
# check here if I need to load a plugin
|
||||||
|
t = self.get('wallet_type')
|
||||||
|
l = plugin_loaders.get(t)
|
||||||
|
if l: l()
|
||||||
|
|
||||||
def get(self, key, default=None):
|
def get(self, key, default=None):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|
Loading…
Reference in New Issue