X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate35.py;h=41d56674aff70d80e6666ae71a36c037b0880317;hb=6cc75beccd14c9b39621cb5894d67cec24750405;hp=335d70e5f67e3fc48f02fe71afeef1c6c9cf5f96;hpb=b3d30c15992186d83ec6407fb0697867435cb458;p=dak.git diff --git a/dak/dakdb/update35.py b/dak/dakdb/update35.py index 335d70e5..41d56674 100644 --- a/dak/dakdb/update35.py +++ b/dak/dakdb/update35.py @@ -45,6 +45,6 @@ def do_update(self): c.execute("UPDATE config SET value = '35' 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 35, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply build_queue update 35, rollback issued. Error message : %s' % (str(msg)))