X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate24.py;h=64deb96e9291bcfd5e5f102068131384fe943a3a;hb=f7e8ab5cc1ef088763a6e0f2b0cdba9ec2b63c87;hp=4e8c505d5c62c01afd878ff1cf6e193ad41e8cb9;hpb=3fd95d52f5c4a4761a1e332d469c6948e091723c;p=dak.git diff --git a/dak/dakdb/update24.py b/dak/dakdb/update24.py index 4e8c505d..64deb96e 100755 --- a/dak/dakdb/update24.py +++ b/dak/dakdb/update24.py @@ -56,7 +56,7 @@ def do_update(self): c.execute("UPDATE config SET value = '24' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Database error, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Database error, rollback issued. Error message : %s" % (str(msg)))