X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate29.py;h=c77d99dad5229510534fd08ffc773914b7d71ba4;hb=e3d2c47d31abaee8ba54fa215704d81bd2be0073;hp=d25c1011a56fbba16449f940f7972798b17f74c2;hpb=fffe7d0517f4d1ab8a15b9e444bcb2fb92b2bd46;p=dak.git diff --git a/dak/dakdb/update29.py b/dak/dakdb/update29.py index d25c1011..c77d99da 100644 --- a/dak/dakdb/update29.py +++ b/dak/dakdb/update29.py @@ -47,6 +47,6 @@ def do_update(self): c.execute("UPDATE config SET value = '29' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)))