Skip to content

Commit

Permalink
sqlite3.enable_callback_tracebacks(True), closes #891
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Sep 15, 2020
1 parent d456b25 commit 432a3d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datasette/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
except ImportError:
import sqlite3

if hasattr(sqlite3, "enable_callback_tracebacks"):
sqlite3.enable_callback_tracebacks(True)

# From https://www.sqlite.org/lang_keywords.html
reserved_words = set(
(
Expand Down

0 comments on commit 432a3d6

Please sign in to comment.