mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +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)
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue