call plugin hooks inside try..except statement
This commit is contained in:
@@ -355,7 +355,12 @@ class ElectrumWindow(QMainWindow):
|
|||||||
f = eval('p.'+name)
|
f = eval('p.'+name)
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
apply(f, args)
|
try:
|
||||||
|
apply(f, args)
|
||||||
|
except:
|
||||||
|
print_error("Plugin error")
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user