call plugin hooks inside try..except statement

This commit is contained in:
thomasv 2013-04-15 15:17:06 +02:00
parent 076b949039
commit 8e86ee1a79
1 changed files with 6 additions and 1 deletions

View 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