use DatabaseError instead of ProgrammingError because behaviour seems to be database dependent (addresses issue 122)

This commit is contained in:
Jan Dittberner 2011-05-25 17:13:53 +02:00
parent 2836390634
commit f80e91f05e

View File

@ -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: