X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate13.py;h=1696e75920ed9d6a7146f31336b68c7ab48a4fb8;hb=7ed15b809fd22f3325aed4e4a1ecac4387417437;hp=d5dbedced401efccdd3e09b0e5e2222feaa2039d;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update13.py b/dak/dakdb/update13.py old mode 100755 new mode 100644 index d5dbedce..1696e759 --- a/dak/dakdb/update13.py +++ b/dak/dakdb/update13.py @@ -44,6 +44,6 @@ def do_update(self): c.execute("UPDATE config SET value = '13' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply process-new update 13, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new update 13, rollback issued. Error message : %s" % (str(msg)))