Skip to content

Commit 083a87e

Browse files
print full error traceback (#769)
* print full error traceback * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * bump version * Update queue.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2160654 commit 083a87e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zndraw"
3-
version = "0.5.6"
3+
version = "0.5.7"
44
description = "Display and Edit Molecular Structures and Trajectories in the Browser."
55
authors = ["zincwarecode <[email protected]>"]
66
license = "License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)"

zndraw/queue.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import traceback
23
import typing as t
34

45
import socketio.exceptions
@@ -92,7 +93,10 @@ def run_queued_task(
9293
try:
9394
queue[TASK_RUNNING] = True
9495
cls(**task).run(vis, **run_kwargs)
95-
except Exception as err:
96-
vis.log(f"Error running `{cls}`: `{err}`")
96+
except Exception:
97+
vis.log(f"""Error running `{cls}`:
98+
```python
99+
{traceback.format_exc()}
100+
```""")
97101
finally:
98102
queue.pop(TASK_RUNNING)

0 commit comments

Comments
 (0)