rm duplicate method getpubkey
[electrum-nvc.git] / lib / plugins.py
index a3ba5bc..ff4a246 100644 (file)
@@ -34,6 +34,8 @@ def run_hook(name, *args):
     
     global plugins
 
+    results = []
+
     for p in plugins:
 
         if not p.is_enabled():
@@ -44,12 +46,14 @@ def run_hook(name, *args):
             continue
 
         try:
-            f(*args)
+            r = f(*args)
         except Exception:
             print_error("Plugin error")
             traceback.print_exc(file=sys.stdout)
-            
-    return
+
+        results.append((p.name,r))
+
+    return results