X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate50.py;h=094998771033509d941db63c0438977ccebfdab1;hb=362ea497d3c9ee5891fca772132269d809a0547a;hp=ae7ea4d0337158bba2205f940ea4892da012e20e;hpb=173f39f0ab7af8b592704189f8ecc4a4aa3df889;p=dak.git diff --git a/dak/dakdb/update50.py b/dak/dakdb/update50.py old mode 100755 new mode 100644 index ae7ea4d0..09499877 --- a/dak/dakdb/update50.py +++ b/dak/dakdb/update50.py @@ -42,6 +42,6 @@ def do_update(self): c.execute("UPDATE config SET value = '50' 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 50, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 50, rollback issued. Error message : %s' % (str(msg)))