mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Print exceptions if they occur in the write thread
This commit is contained in:
parent
dc80e779a2
commit
b796519da2
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ class Database:
|
||||||
try:
|
try:
|
||||||
result = task.fn(conn)
|
result = task.fn(conn)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
result = e
|
result = e
|
||||||
task.reply_queue.sync_q.put(result)
|
task.reply_queue.sync_q.put(result)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue