]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
error message if pysqlite2 couldnt be imported
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Feb 2006 16:17:23 +0000 (16:17 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Feb 2006 16:17:23 +0000 (16:17 +0000)
lib/sqlalchemy/databases/sqlite.py

index a403e3c1a61a00433e264b0cd1f0fe1bd478e344..1958118b7d11e60079dbc3058f2593424135edba 100644 (file)
@@ -144,6 +144,8 @@ class SQLiteSQLEngine(ansisql.ANSISQLEngine):
         return SQLiteCompiler(self, statement, bindparams, **kwargs)
 
     def dbapi(self):
+        if sqlite is None:
+            raise "Couldn't import pysqlite2"
         return sqlite
 
     def schemagenerator(self, proxy, **params):