We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad77a1 commit 2aea0aaCopy full SHA for 2aea0aa
chaoslib/provider/python.py
@@ -1,3 +1,4 @@
1
+from distutils.log import error
2
import importlib
3
import inspect
4
import sys
@@ -88,10 +89,11 @@ def validate_python_activity(activity: Activity): # noqa: C901
88
89
90
try:
91
mod = importlib.import_module(mod_name)
- except ImportError:
92
+ except ImportError as e:
93
raise InvalidActivity(
94
"could not find Python module '{mod}' "
- "in activity '{name}'".format(mod=mod_name, name=activity_name)
95
+ "in activity '{name}'"
96
+ "\nthe error is:\n{error}".format(mod=mod_name, name=activity_name, error=e)
97
)
98
99
found_func = False
0 commit comments