fix: add wallet types only if available
This commit is contained in:
@@ -40,7 +40,7 @@ def hook(func):
|
||||
|
||||
|
||||
def run_hook(name, *args):
|
||||
SPECIAL_HOOKS = ['add_wallet_types', 'get_wizard_action']
|
||||
SPECIAL_HOOKS = ['get_wizard_action']
|
||||
results = []
|
||||
f_list = hooks.get(name,[])
|
||||
for p, f in f_list:
|
||||
|
||||
@@ -1637,7 +1637,6 @@ class Wallet(object):
|
||||
msg += "\nTo open this wallet, try 'git checkout seed_v%d'"%seed_version
|
||||
raise BaseException(msg)
|
||||
|
||||
run_hook('add_wallet_types', wallet_types)
|
||||
wallet_type = storage.get('wallet_type')
|
||||
if wallet_type:
|
||||
for cat, t, name, c in wallet_types:
|
||||
|
||||
Reference in New Issue
Block a user