Browse Source

Fix how drives are imported

oz123 10 năm trước cách đây
mục cha
commit
a490498614
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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]