Print exceptions if they occur in the write thread

This commit is contained in:
Simon Willison 2020-03-02 17:59:29 -08:00
commit b796519da2

View file

@ -97,6 +97,7 @@ class Database:
try:
result = task.fn(conn)
except Exception as e:
print(e)
result = e
task.reply_queue.sync_q.put(result)