From 8e86ee1a79b526f19f225cb536174f71e66d2af9 Mon Sep 17 00:00:00 2001 From: thomasv Date: Mon, 15 Apr 2013 15:17:06 +0200 Subject: [PATCH] call plugin hooks inside try..except statement --- gui/gui_classic.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/gui_classic.py b/gui/gui_classic.py index e5031dfe5..aca1f6225 100644 --- a/gui/gui_classic.py +++ b/gui/gui_classic.py @@ -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