diff --git a/reframe/core/exceptions.py b/reframe/core/exceptions.py index 4cb939a80d..40b8ea0478 100644 --- a/reframe/core/exceptions.py +++ b/reframe/core/exceptions.py @@ -282,7 +282,7 @@ def user_frame(exc_type, exc_value, tb): ''' if not inspect.istraceback(tb): - raise ValueError('could not retrieve frame: argument not a traceback') + return None for finfo in reversed(inspect.getinnerframes(tb)): relpath = os.path.relpath(finfo.filename, sys.path[0])