Commit 74ccf7a3 authored by Pádraig Brady's avatar Pádraig Brady Committed by Monty Taylor

Fix exceptions for SQLAlchemy 0.8

Change-Id: Ib541ac9d6b397300e34ca8b65aad459b612858c3
parent c670d1d3
......@@ -560,7 +560,7 @@ class TestColumnChange(fixture.DB):
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
......@@ -569,7 +569,7 @@ class TestColumnChange(fixture.DB):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment