X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate63.py;h=e9e5c0f1912eb1b1aca643fcd8faaa7f0c9e2d65;hb=df984f92931b276da9e3ddb0b2fb6e7dc05d91d6;hp=9b1187c6e19d9f814494e3074923ebf170425da0;hpb=46c985bfae7abf3baf5c47970e748d350d7b2d35;p=dak.git diff --git a/dak/dakdb/update63.py b/dak/dakdb/update63.py index 9b1187c6..e9e5c0f1 100755 --- a/dak/dakdb/update63.py +++ b/dak/dakdb/update63.py @@ -54,6 +54,6 @@ def do_update(self): c.execute("UPDATE config SET value = '63' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply sick update 63, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 63, rollback issued. Error message : %s' % (str(msg)))