Print exceptions if they occur in the write thread

pull/652/head^2
Simon Willison 2020-03-02 17:59:29 -08:00
rodzic dc80e779a2
commit b796519da2
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)