X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate9.py;h=20af71fd23f9e151b3b935f44bcb855328a00f43;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=2ca3c51eee6f42f4dfcbb820174c615c7a8adbc0;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update9.py b/dak/dakdb/update9.py index 2ca3c51e..20af71fd 100755 --- 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))