Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2024
1 parent b890655 commit bd265ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zndraw/queue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import typing as t
import traceback
import typing as t

import socketio.exceptions
import znsocket.exceptions
Expand Down Expand Up @@ -93,12 +93,11 @@ def run_queued_task(
try:
queue[TASK_RUNNING] = True
cls(**task).run(vis, **run_kwargs)
except Exception as err:
except Exception:
# TODO: print stacktrace
vis.log(f"""Error running `{cls}`:
```python
{traceback.format_exc()}
```"""
)
```""")
finally:
queue.pop(TASK_RUNNING)

0 comments on commit bd265ba

Please sign in to comment.