git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
show popup if qr scanner not enabled
[electrum-nvc.git]
/
lib
/
plugins.py
diff --git
a/lib/plugins.py
b/lib/plugins.py
index
a3ba5bc
..
700dbc2
100644
(file)
--- a/
lib/plugins.py
+++ b/
lib/plugins.py
@@
-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