X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate38.py;h=da3a1d6596e9aa473a28f0fb6aa85a5557f94282;hb=df984f92931b276da9e3ddb0b2fb6e7dc05d91d6;hp=583aa3ade53edb297011a9e1465250cbe43f66bd;hpb=05cf023793b0b7ad270afbaf9958e1cb0cae5ef6;p=dak.git diff --git a/dak/dakdb/update38.py b/dak/dakdb/update38.py index 583aa3ad..da3a1d65 100755 --- a/dak/dakdb/update38.py +++ b/dak/dakdb/update38.py @@ -51,6 +51,6 @@ def do_update(self): c.execute("UPDATE config SET value = '38' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply table-column update 38, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply table-column update 38, rollback issued. Error message : %s' % (str(msg)))