X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fdakdb%2Fupdate4.py;h=938522ccd83cddacc7d9765cd360c2c6d034f1c5;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=477944c830408548367e13710495bd26084bb905;hpb=ec44bcc3b4bbeb7a389dda77f39ff54436d1b181;p=dak.git diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py index 477944c8..938522cc 100755 --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -64,6 +64,6 @@ def do_update(self): self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)))