You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At some points (see here) in the code with catch an exception to report it and then re-throw it back.
This rethrowing though happens inside function report_and_rethrow which causes python to think it's new exception creating more confusing stack trace in where the same exception is basically repeated with "During handling of the above exception, another exception occurred:"
For example
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/pandas/core/ops/array_ops.py", line 220, in _na_arithmetic_op
result = func(left, right)
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/pandas/core/computation/expressions.py", line 242, in evaluate
return _evaluate(op, op_str, a, b) # type: ignore[misc]
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/pandas/core/computation/expressions.py", line 73, in _evaluate_standard
return op(a, b)
TypeError: can only concatenate str (not "int") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/vdk/internal/builtin_plugins/run/data_job.py", line 304, in run
Expected behavior
The stack trace is minimized without the unnecessary double messages and report_and_rethrow functions in the stack trace
Describe the bug
At some points (see here) in the code with catch an exception to report it and then re-throw it back.
This rethrowing though happens inside function report_and_rethrow which causes python to think it's new exception creating more confusing stack trace in where the same exception is basically repeated with "During handling of the above exception, another exception occurred:"
For example
Expected behavior
The stack trace is minimized without the unnecessary double messages and report_and_rethrow functions in the stack trace
Additional context
See full logs in stacktrace-rethrow-exception.txt
The text was updated successfully, but these errors were encountered: