X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate8.py;h=98e0f088048e06c2981c80ac7ad8d33f57844b7e;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=2f92c4d833d7008d1495e01ae43110d6b46ce999;hpb=65eca3359b965e53f16a8132ba62eaa8462716f8;p=dak.git diff --git a/dak/dakdb/update8.py b/dak/dakdb/update8.py index 2f92c4d8..98e0f088 100755 --- a/dak/dakdb/update8.py +++ b/dak/dakdb/update8.py @@ -99,6 +99,6 @@ def do_update(self): c.execute("UPDATE config SET value = '8' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)))