X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate7.py;h=9c3dd1ed6662f4faa8eb2ea5cb5f9515297f0c18;hb=0a556bbfc566b70d0eb9609eb990dc89bfbd8317;hp=6f91eb378d2dc1dd6c06fdcab87757508131a05c;hpb=35cd0972b5e14dc8727403e13fccd30776f3ae02;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)))