Skip to content

Commit fb2a1df

Browse files
committed
Adapted for 0.4.2
1 parent ba92ec8 commit fb2a1df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytask_vscode/execution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def pytask_execute_task_log_end(session: pytask.Session, report: pytask.Executio
2222
try:
2323
if report.outcome == pytask.TaskOutcome.FAIL:
2424
with pytask.console.capture() as capture:
25-
pytask.console.print(pytask.render_exc_info(report.exc_info[0], report.exc_info[1], report.exc_info[2]))
25+
pytask.console.print(pytask.Traceback(report.exc_info))
2626
s = capture.get()
2727
result = {'type': 'task', 'name' : report.task.name.split('/')[-1], 'outcome' : str(report.outcome), 'exc_info' : s}
2828
else:
2929
result = {'type': 'task', 'name' : report.task.name.split('/')[-1], 'outcome' : str(report.outcome)}
3030
res = requests.post('http://localhost:6000/pytask', json=result, timeout=0.00001)
3131
except requests.exceptions.ReadTimeout:
3232
pass
33-
except Exception as e:
33+
except Exception as e:#
3434
pass

0 commit comments

Comments
 (0)