X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate43.py;h=430cc3581dc42c98a9666719612e2f004ba95418;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=071541051a381dec7670ff209acfb14d95c593f8;hpb=50db22ea5f288daa39f81138a41a509d9a41cc3e;p=dak.git diff --git a/dak/dakdb/update43.py b/dak/dakdb/update43.py index 07154105..430cc358 100755 --- a/dak/dakdb/update43.py +++ b/dak/dakdb/update43.py @@ -46,6 +46,6 @@ def do_update(self): c.execute("UPDATE config SET value = '43' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply update 43, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply update 43, rollback issued. Error message : %s' % (str(msg)))