mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Don't require all Python database modules to be installed
We support multiple database backends. Don't require Python modules for all backends to be installed. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
882c011e74
commit
4b97789bab
1 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,12 @@
|
||||||
|
try:
|
||||||
import mysql.connector
|
import mysql.connector
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
import aurweb.config
|
import aurweb.config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue