Browse Source

Fix how drives are imported

oz123 10 years ago
parent
commit
a490498614
1 changed files with 4 additions and 4 deletions
  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]