X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate36.py;h=432e09f3653f65b1f0202bf126d407c18d796380;hb=f0aecfc41de9927d255402dafcae4eeb6a9fd5f8;hp=d5810f6815069cc6376a003474d2b8e1debea52a;hpb=b08d34592751e4a472394d0035b389442c224e7c;p=dak.git diff --git a/dak/dakdb/update36.py b/dak/dakdb/update36.py index d5810f68..432e09f3 100644 --- a/dak/dakdb/update36.py +++ b/dak/dakdb/update36.py @@ -43,6 +43,6 @@ def do_update(self): c.execute("UPDATE config SET value = '36' 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 36, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply build_queue update 36, rollback issued. Error message : %s' % (str(msg)))