Sfoglia il codice sorgente

Fix how drives are imported

oz123 10 anni fa
parent
commit
a490498614
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      pwman/data/drivers/__init__.py

+ 4 - 4
pwman/data/drivers/__init__.py

@@ -1,21 +1,21 @@
 try:
     from .sqlite import SQLite
 except ImportError:
-    pass
+    SQLite = None
 
 try:
     from .postgresql import PostgresqlDatabase
 except ImportError:
-    pass
+    PostgresqlDatabase = None
 
 try:
     from .mysql import MySQLDatabase
 except ImportError:
-    pass
+    MySQLDatabase = None
 
 try:
     from .mongodb import MongoDB
 except ImportError:
-    pass
+    MongoDB = None
 
 _all__ = [SQLite, PostgresqlDatabase, MySQLDatabase, MongoDB]