summaryrefslogtreecommitdiffstats
path: root/aurweb
diff options
context:
space:
mode:
Diffstat (limited to 'aurweb')
-rw-r--r--aurweb/db.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/aurweb/db.py b/aurweb/db.py
index 0b581970..c6d4de11 100644
--- a/aurweb/db.py
+++ b/aurweb/db.py
@@ -1,5 +1,12 @@
-import mysql.connector
-import sqlite3
+try:
+ import mysql.connector
+except ImportError:
+ pass
+
+try:
+ import sqlite3
+except ImportError:
+ pass
import aurweb.config