X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate9.py;h=bbdd212206653ab7b525d19282187c64c9604fee;hb=7d912bf13b392882e6d0d9bd4a30a81074c8e331;hp=2ca3c51eee6f42f4dfcbb820174c615c7a8adbc0;hpb=35cd0972b5e14dc8727403e13fccd30776f3ae02;p=dak.git diff --git a/dak/dakdb/update9.py b/dak/dakdb/update9.py old mode 100755 new mode 100644 index 2ca3c51e..bbdd2122 --- a/dak/dakdb/update9.py +++ b/dak/dakdb/update9.py @@ -57,6 +57,6 @@ def do_update(self): c.execute("UPDATE config SET value = '9' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)))