Skip to content

Commit 8ddab48

Browse files
committed
vine: python task: print traceback on error
1 parent 41e2e2b commit 8ddab48

File tree

1 file changed

+4
-1
lines changed
  • taskvine/src/bindings/python3/ndcctools/taskvine

1 file changed

+4
-1
lines changed

taskvine/src/bindings/python3/ndcctools/taskvine/task.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,16 @@ def _fn_wrapper(self, manager, serialize):
10411041
except Exception as e:
10421042
exec_out = e
10431043
error = e
1044-
finally:
1044+
else:
10451045
with open(out, "wb") as f:
10461046
if {serialize}:
10471047
cloudpickle.dump(exec_out, f)
10481048
else:
10491049
f.write(exec_out)
1050+
finally:
10501051
if error:
1052+
import traceback
1053+
traceback.print_exc()
10511054
raise error
10521055
"""))
10531056
manager._function_buffers[base] = manager.declare_file(name, cache=True)

0 commit comments

Comments
 (0)