1
0

better integration of plugins in installwizard (for 2fa, trezor plugins)

This commit is contained in:
ThomasV
2014-07-01 18:46:11 +02:00
parent 101fe08ac8
commit 2c38e85a50
4 changed files with 156 additions and 207 deletions

View File

@@ -34,7 +34,7 @@ def run_hook(name, *args):
global plugins
found = 0
results = []
for p in plugins:
@@ -45,15 +45,15 @@ def run_hook(name, *args):
if not callable(f):
continue
found += 1
try:
f(*args)
r = f(*args)
except Exception:
print_error("Plugin error")
traceback.print_exc(file=sys.stdout)
return found
results.append((p.name,r))
return results