X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate22.py;h=5c852c67024f0b6a73e4595d51c3ae4f33067ebb;hb=4174286376153578f1444aa0afcfa2b5bfe1fe61;hp=dbd7ced6023c1d3bf77b7c225ca1a4e4361d8211;hpb=f1bfe2d32f1bf808b52e4f1bf95a3bdf6cd96aa2;p=dak.git diff --git a/dak/dakdb/update22.py b/dak/dakdb/update22.py index dbd7ced6..5c852c67 100755 --- 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)))