X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate33.py;h=5b0fe110d4dab1dad30ecf27c575d85ccd6db12a;hb=97c6ee9e04eeb721d121a37724a91a2e87db688e;hp=9624ba627b93daf42d0ec3b99274f1dfe3635e97;hpb=f63c8b5ea1b8a059bc70fa323ec836af1402be2c;p=dak.git diff --git a/dak/dakdb/update33.py b/dak/dakdb/update33.py index 9624ba62..5b0fe110 100644 --- a/dak/dakdb/update33.py +++ b/dak/dakdb/update33.py @@ -50,6 +50,6 @@ def do_update(self): c.execute("UPDATE config SET value = '33' 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 33, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply build_queue update 33, rollback issued. Error message : %s' % (str(msg)))