X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate44.py;h=bce1fe7db3fcd00934836e2f2899c8435662348c;hb=71992b92aba2116e018c5d5ecc8108971b0d56e5;hp=465f2fce6a86a1ef65475052fad7937615d8b8ca;hpb=50db22ea5f288daa39f81138a41a509d9a41cc3e;p=dak.git diff --git a/dak/dakdb/update44.py b/dak/dakdb/update44.py old mode 100755 new mode 100644 index 465f2fce..bce1fe7d --- a/dak/dakdb/update44.py +++ b/dak/dakdb/update44.py @@ -47,6 +47,6 @@ def do_update(self): c.execute("UPDATE config SET value = '44' 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 44, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 44, rollback issued. Error message : %s' % (str(msg)))