mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
plugins: somewhat clearer exception is loading plugin fails
see #4817 (issuecomment-434778055)
This commit is contained in:
parent
386e0d560e
commit
0862fdb9a9
1 changed files with 5 additions and 2 deletions
|
@ -100,8 +100,11 @@ class Plugins(DaemonThread):
|
|||
if not loader:
|
||||
raise RuntimeError("%s implementation for %s plugin not found"
|
||||
% (self.gui_name, name))
|
||||
p = loader.load_module()
|
||||
plugin = p.Plugin(self, self.config, name)
|
||||
try:
|
||||
p = loader.load_module()
|
||||
plugin = p.Plugin(self, self.config, name)
|
||||
except Exception as e:
|
||||
raise Exception(f"Error loading {name} plugin: {e}") from e
|
||||
self.add_jobs(plugin.thread_jobs())
|
||||
self.plugins[name] = plugin
|
||||
self.print_error("loaded", name)
|
||||
|
|
Loading…
Add table
Reference in a new issue