X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate9.py;h=bbdd212206653ab7b525d19282187c64c9604fee;hb=8edf5e1387ee12c35076a8c60f61e71cd6cb8e23;hp=2ca3c51eee6f42f4dfcbb820174c615c7a8adbc0;hpb=1e1457bde3318c6605b4c97d4299803fdaf8e774;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)))