X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate10.py;h=31c70d379206504bf48b56ef7570f2137bb1bbfe;hb=f0aecfc41de9927d255402dafcae4eeb6a9fd5f8;hp=5cd4f30dc50899aa78933bf8d8602e6d975c350a;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update10.py b/dak/dakdb/update10.py old mode 100755 new mode 100644 index 5cd4f30d..31c70d37 --- a/dak/dakdb/update10.py +++ b/dak/dakdb/update10.py @@ -51,6 +51,6 @@ def do_update(self): c.execute("UPDATE config SET value = '10' 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)))