call plugin hooks inside try..except statement
authorthomasv <thomasv@gitorious>
Mon, 15 Apr 2013 13:17:06 +0000 (15:17 +0200)
committerthomasv <thomasv@gitorious>
Mon, 15 Apr 2013 13:17:06 +0000 (15:17 +0200)
gui/gui_classic.py

index e5031df..aca1f62 100644 (file)
@@ -355,7 +355,12 @@ class ElectrumWindow(QMainWindow):
                 f = eval('p.'+name)
             except:
                 continue
-            apply(f, args)
+            try:
+                apply(f, args)
+            except:
+                print_error("Plugin error")
+                traceback.print_exc(file=sys.stdout)
+                
         return