X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate22.py;h=5c852c67024f0b6a73e4595d51c3ae4f33067ebb;hb=e5cad663b24aafea82b1229558dabdbba399faa1;hp=dbd7ced6023c1d3bf77b7c225ca1a4e4361d8211;hpb=4c2f147c52208ab618d5646968e9c3cb45a996d1;p=dak.git diff --git a/dak/dakdb/update22.py b/dak/dakdb/update22.py old mode 100755 new mode 100644 index dbd7ced6..5c852c67 --- a/dak/dakdb/update22.py +++ b/dak/dakdb/update22.py @@ -235,6 +235,6 @@ def do_update(self): c.execute("UPDATE config SET value = '22' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg)))