From 545e9cb84c6759269945b1573e325521baf4682e Mon Sep 17 00:00:00 2001 From: Gavan Fantom Date: Thu, 2 Dec 2021 15:01:19 +0000 Subject: [PATCH] Use pysqlite3 if available --- jlcchart/db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jlcchart/db.py b/jlcchart/db.py index 023a059..a3c9a48 100644 --- a/jlcchart/db.py +++ b/jlcchart/db.py @@ -1,4 +1,7 @@ -import sqlite3 +try: + import pysqlite3 as sqlite3 +except (ImportError, ModuleNotFoundError): + import sqlite3 import click from flask import current_app, g