mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-04 01:09:48 +00:00
fix: pass underlying exception on extensionerror
This commit is contained in:
@@ -184,8 +184,8 @@ class TriggerLoader(LazyLogging):
|
||||
trigger_type = self.load_trigger_class(module_path)
|
||||
try:
|
||||
trigger = trigger_type(repository_id, configuration)
|
||||
except Exception:
|
||||
raise ExtensionError(f"Could not load instance of trigger from {trigger_type} loaded from {module_path}")
|
||||
except Exception as ex:
|
||||
raise ExtensionError(f"Could not load trigger from {trigger_type} loaded from {module_path}") from ex
|
||||
|
||||
return trigger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user