X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate38.py;h=da3a1d6596e9aa473a28f0fb6aa85a5557f94282;hb=9b194c0a49096be2d659906c98500d2981b75b53;hp=583aa3ade53edb297011a9e1465250cbe43f66bd;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;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)))