X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate41.py;h=65661d3c420eae1c441ed948203bf1f9128e0b5e;hb=7ed15b809fd22f3325aed4e4a1ecac4387417437;hp=813a3b709e17a83488245ef748a70d7e44f6ce52;hpb=50db22ea5f288daa39f81138a41a509d9a41cc3e;p=dak.git diff --git a/dak/dakdb/update41.py b/dak/dakdb/update41.py old mode 100755 new mode 100644 index 813a3b70..65661d3c --- a/dak/dakdb/update41.py +++ b/dak/dakdb/update41.py @@ -61,6 +61,6 @@ def do_update(self): c.execute("UPDATE config SET value = '41' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply sick update 41, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 41, rollback issued. Error message : %s' % (str(msg)))