aboutsummaryrefslogtreecommitdiffstats
path: root/app/PluginManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/PluginManager.py')
-rw-r--r--app/PluginManager.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/app/PluginManager.py b/app/PluginManager.py
index 86da22f..fdc81a9 100644
--- a/app/PluginManager.py
+++ b/app/PluginManager.py
@@ -42,10 +42,15 @@ class PluginManager:
return
try:
- plugin: PluginInterface = self.plugin_instances[id]
- ret_items: list[Item] = plugin.process(source_id, items)
- self.propagate(id, ret_items)
- except Exception as ex:
+ try:
+ plugin: PluginInterface = self.plugin_instances[id]
+ ret_items: list[Item] = plugin.process(source_id, items)
+ self.propagate(id, ret_items)
+ except Exception as ex:
+ ex.add_note(f"context: plugin id: {id}, source id: {source_id}")
+ raise
+
+ except:
exc = traceback.format_exc()
print(exc, file=sys.stderr)
if self.email_alerter: