mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
call plugin hooks inside try..except statement
This commit is contained in:
parent
076b949039
commit
8e86ee1a79
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue