X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate10.py;h=31c70d379206504bf48b56ef7570f2137bb1bbfe;hb=9eff87cf703b5fe3310570ab30ff922e62f2957a;hp=5cd4f30dc50899aa78933bf8d8602e6d975c350a;hpb=56477fb20a2e3b97a4f47d2c18d137b36f083584;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)))