X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate32.py;h=59355c91a3af811c063caed8e8365767da7f3329;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=98eaa4e6973fd063aacfb4085a89cdc7f5902063;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update32.py b/dak/dakdb/update32.py index 98eaa4e6..59355c91 100755 --- a/dak/dakdb/update32.py +++ b/dak/dakdb/update32.py @@ -44,7 +44,7 @@ def do_update(self): c.execute("UPDATE config SET value = '32' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply build_queue update 32, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply build_queue update 32, rollback issued. Error message : %s" % (str(msg)))