Include the error type for the OperationalException
This commit is contained in:
parent
76cf68deed
commit
fd7e4743ec
@ -70,7 +70,9 @@ class IResolver:
|
||||
if enum_failed:
|
||||
return iter([None])
|
||||
except Exception as e:
|
||||
raise OperationalException(f"Error loading {module_path}: {e}") from e
|
||||
raise OperationalException(
|
||||
f"Error loading {module_path}: {e.__class__.__name__}{e}"
|
||||
) from e
|
||||
|
||||
valid_objects_gen = (
|
||||
(obj, inspect.getsource(module)) for
|
||||
|
Loading…
Reference in New Issue
Block a user