summaryrefslogtreecommitdiff
path: root/backends/sqlcipher.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-12 16:41:26 -0200
committerdrebs <drebs@leap.se>2013-02-12 16:41:26 -0200
commitb848bfa450c1882f65d01b2adc57b9c8263539bd (patch)
tree146d0c824d642c0b55bbfaca2919a4bfaf540b8f /backends/sqlcipher.py
parent6679d58c9658a3c513abf0dc0aaa5f88e4416001 (diff)
Adapt code and tests to use pysqlcipher.
Diffstat (limited to 'backends/sqlcipher.py')
-rw-r--r--backends/sqlcipher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sqlcipher.py b/backends/sqlcipher.py
index 9108f73a..c902b466 100644
--- a/backends/sqlcipher.py
+++ b/backends/sqlcipher.py
@@ -17,7 +17,7 @@
"""A U1DB implementation that uses SQLCipher as its persistence layer."""
import os
-from sqlite3 import dbapi2, DatabaseError
+from pysqlcipher import dbapi2
import time
from u1db.backends.sqlite_backend import (
@@ -92,7 +92,7 @@ class SQLCipherDatabase(SQLitePartialExpandDatabase):
# backend should raise a DatabaseError exception.
SQLitePartialExpandDatabase(sqlite_file)
raise DatabaseIsNotEncrypted()
- except DatabaseError:
+ except dbapi2.DatabaseError:
pass
@classmethod