X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate4.py;h=938522ccd83cddacc7d9765cd360c2c6d034f1c5;hb=d8f07b1f17a1048b4d26362db8563330f889e087;hp=477944c830408548367e13710495bd26084bb905;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;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)))