From b796519da27dc6c30d490321bb449091974d3d38 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 2 Mar 2020 17:59:29 -0800 Subject: [PATCH] Print exceptions if they occur in the write thread --- datasette/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datasette/database.py b/datasette/database.py index 08eced8c..48c367ef 100644 --- a/datasette/database.py +++ b/datasette/database.py @@ -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)