1
0

show popup if qr scanner not enabled

This commit is contained in:
ThomasV
2014-06-17 16:45:45 +02:00
parent c9fd14e343
commit e2d03f1cc9
3 changed files with 10 additions and 12 deletions

View File

@@ -34,6 +34,8 @@ def run_hook(name, *args):
global plugins
found = 0
for p in plugins:
if not p.is_enabled():
@@ -43,13 +45,15 @@ def run_hook(name, *args):
if not callable(f):
continue
found += 1
try:
f(*args)
except Exception:
print_error("Plugin error")
traceback.print_exc(file=sys.stdout)
return
return found