X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate10.py;h=31c70d379206504bf48b56ef7570f2137bb1bbfe;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=5cd4f30dc50899aa78933bf8d8602e6d975c350a;hpb=56477fb20a2e3b97a4f47d2c18d137b36f083584;p=dak.git diff --git a/dak/dakdb/update10.py b/dak/dakdb/update10.py index 5cd4f30d..31c70d37 100755 --- 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)))