Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Fix exceptions for SQLAlchemy 0.8
Browse files Browse the repository at this point in the history
Change-Id: Ib541ac9d6b397300e34ca8b65aad459b612858c3
  • Loading branch information
pixelb authored and emonty committed Jul 12, 2013
1 parent c670d1d commit 74ccf7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/tests/changeset/test_changeset.py
Expand Up @@ -560,7 +560,7 @@ def _setup(self, url):
self.table.drop()
try:
self.table.create()
except sqlalchemy.exceptions.SQLError, e:
except sqlalchemy.exc.SQLError, e:
# SQLite: database schema has changed
if not self.url.startswith('sqlite://'):
raise
Expand All @@ -569,7 +569,7 @@ def _teardown(self):
if self.table.exists():
try:
self.table.drop(self.engine)
except sqlalchemy.exceptions.SQLError,e:
except sqlalchemy.exc.SQLError,e:
# SQLite: database schema has changed
if not self.url.startswith('sqlite://'):
raise
Expand Down

0 comments on commit 74ccf7a

Please sign in to comment.