X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate8.py;h=98e0f088048e06c2981c80ac7ad8d33f57844b7e;hb=8eef1cfc770d01b357ac3a413f3ccd94c30065f7;hp=2f92c4d833d7008d1495e01ae43110d6b46ce999;hpb=ec44bcc3b4bbeb7a389dda77f39ff54436d1b181;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)))