Skip to content

Commit ae9a527

Browse files
authored
Merge pull request #1 from wix-chaos-hub/jenkins-debug
Jenkins debug
2 parents 99bbfa9 + b22c849 commit ae9a527

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chaoslib/provider/python.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@ def validate_python_activity(activity: Activity): # noqa: C901
8888

8989
try:
9090
mod = importlib.import_module(mod_name)
91-
except ImportError:
91+
except ImportError as e:
9292
raise InvalidActivity(
9393
"could not find Python module '{mod}' "
94-
"in activity '{name}'".format(mod=mod_name, name=activity_name)
94+
"in activity '{name}'"
95+
"\nerror traceback:\n{error}".format(
96+
mod=mod_name, name=activity_name, error=e)
9597
)
9698

9799
found_func = False

0 commit comments

Comments
 (0)