X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate17.py;h=493640eb9ff6a79df097a345d17424a5ebbcc1ad;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=beca9425020e6b3df6004eccdf6dea1299a54541;hpb=283986de6cbd03095fb8c9d003219e31e134e310;p=dak.git diff --git a/dak/dakdb/update17.py b/dak/dakdb/update17.py index beca9425..493640eb 100755 --- a/dak/dakdb/update17.py +++ b/dak/dakdb/update17.py @@ -58,9 +58,9 @@ def do_update(self): self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply process-new update 17, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new update 17, rollback issued. Error message : %s" % (str(msg)))