mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-04 09:19:47 +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)
|
trigger_type = self.load_trigger_class(module_path)
|
||||||
try:
|
try:
|
||||||
trigger = trigger_type(repository_id, configuration)
|
trigger = trigger_type(repository_id, configuration)
|
||||||
except Exception:
|
except Exception as ex:
|
||||||
raise ExtensionError(f"Could not load instance of trigger from {trigger_type} loaded from {module_path}")
|
raise ExtensionError(f"Could not load trigger from {trigger_type} loaded from {module_path}") from ex
|
||||||
|
|
||||||
return trigger
|
return trigger
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user