X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fdakdb%2Fupdate7.py;h=9c3dd1ed6662f4faa8eb2ea5cb5f9515297f0c18;hb=6cc75beccd14c9b39621cb5894d67cec24750405;hp=6f91eb378d2dc1dd6c06fdcab87757508131a05c;hpb=1e1457bde3318c6605b4c97d4299803fdaf8e774;p=dak.git diff --git a/dak/dakdb/update7.py b/dak/dakdb/update7.py index 6f91eb37..9c3dd1ed 100755 --- a/dak/dakdb/update7.py +++ b/dak/dakdb/update7.py @@ -116,6 +116,6 @@ def do_update(self): c.execute("UPDATE config SET value = '7' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to appy suite config updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to appy suite config updates, rollback issued. Error message : %s" % (str(msg)))