X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate32.py;h=59355c91a3af811c063caed8e8365767da7f3329;hb=f7e8ab5cc1ef088763a6e0f2b0cdba9ec2b63c87;hp=98eaa4e6973fd063aacfb4085a89cdc7f5902063;hpb=7087fb77f094f969fba18b033d3138c8c0e0aa99;p=dak.git diff --git a/dak/dakdb/update32.py b/dak/dakdb/update32.py index 98eaa4e6..59355c91 100755 --- a/dak/dakdb/update32.py +++ b/dak/dakdb/update32.py @@ -44,7 +44,7 @@ def do_update(self): c.execute("UPDATE config SET value = '32' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply build_queue update 32, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply build_queue update 32, rollback issued. Error message : %s" % (str(msg)))