tcall plugin hooks inside try..except statement - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 8e86ee1a79b526f19f225cb536174f71e66d2af9
DIR parent 076b94903919d0c582fe3a6c1c2db8179444b627
HTML Author: thomasv <thomasv@gitorious>
Date: Mon, 15 Apr 2013 15:17:06 +0200
call plugin hooks inside try..except statement
Diffstat:
M gui/gui_classic.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py
t@@ -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