X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate38.py;h=da3a1d6596e9aa473a28f0fb6aa85a5557f94282;hb=c9035a5de77db26ff734e89107deddf19d8da1f8;hp=583aa3ade53edb297011a9e1465250cbe43f66bd;hpb=b637b9219808c49d717ed9156debb8fbb55b5e3e;p=dak.git diff --git a/dak/dakdb/update38.py b/dak/dakdb/update38.py old mode 100755 new mode 100644 index 583aa3ad..da3a1d65 --- 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)))