summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolly <olly@ollycope.com>2015-09-04 09:33:32 +0000
committerolly <olly@ollycope.com>2015-09-04 09:33:32 +0000
commitd0346cedb5c7b0402e8dc3c2fc639337a97f6531 (patch)
treefe44e43a596ccff3a2d03363e672171309134eed
parent58f6aff7c098ca69c088c7100aa8fccb4390fdd1 (diff)
downloadyoyo-d0346cedb5c7b0402e8dc3c2fc639337a97f6531.tar.gz
Fix initialization of backend.DatabaseError
-rw-r--r--yoyo/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yoyo/backends.py b/yoyo/backends.py
index f37f4df..f5b00db 100644
--- a/yoyo/backends.py
+++ b/yoyo/backends.py
@@ -115,11 +115,11 @@ class DatabaseBackend(object):
def __init__(self, dburi, migration_table):
self.uri = dburi
+ self.DatabaseError = self.driver.DatabaseError
self._connection = self.connect(dburi)
self.migration_table = migration_table
self.create_migrations_table()
self.has_transactional_ddl = self._check_transactional_ddl()
- self.DatabaseError = self.driver.DatabaseError
def _load_driver_module(self):
"""