use DatabaseError instead of ProgrammingError because behaviour seems to be database dependent (addresses issue 122)
This commit is contained in:
parent
2836390634
commit
f80e91f05e
@ -61,7 +61,7 @@ class ControlledSchema(object):
|
||||
if SQLA_07:
|
||||
try:
|
||||
self.table.drop()
|
||||
except sa_exceptions.ProgrammingError:
|
||||
except sa_exceptions.DatabaseError:
|
||||
raise exceptions.DatabaseNotControlledError(str(self.table))
|
||||
else:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user