Skip to content

Commit d423ad7

Browse files
authored
Fix idiotic typo in exception handling (#2567)
1 parent 1b43c3f commit d423ad7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

metaflow/task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ def _exec_step_function(self, step_function, orig_step_func, input_obj=None):
121121
r = w.post_step(orig_step_func.name, self.flow, raised_exception)
122122
except Exception as ex:
123123
r = ex
124-
if r is None or isinstance(r, Exception):
124+
if r is None:
125125
raised_exception = None
126+
elif isinstance(r, Exception):
127+
raised_exception = r
126128
elif isinstance(r, tuple):
127129
if len(r) == 2:
128130
raised_exception, fake_next_call_args = r

0 commit comments

Comments
 (0)