Skip to content

Commit

Permalink
why do pipelines fail?
Browse files Browse the repository at this point in the history
  • Loading branch information
realratchet committed Mar 27, 2024
1 parent 05f30f1 commit ec8ec74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mplite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,16 @@ def stop(self):


def pickle_exception(e: Exception):
print(e)
if e.__traceback__ is not None:
tback = pklex.pickle_traceback(e.__traceback__)
e.__traceback__ = None
else:
tback = None

fn_ex, (ex_cls, ex_txt, ex_rsn, _) = pklex.pickle_exception(e)
pkld = pklex.pickle_exception(e)
print(pkld)
fn_ex, (ex_cls, ex_txt, ex_rsn, _) = pkld

return fn_ex, (ex_cls, ex_txt, ex_rsn, tback)

Expand Down

0 comments on commit ec8ec74

Please sign in to comment.