X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fdakdb%2Fupdate41.py;h=65661d3c420eae1c441ed948203bf1f9128e0b5e;hb=f7e8ab5cc1ef088763a6e0f2b0cdba9ec2b63c87;hp=813a3b709e17a83488245ef748a70d7e44f6ce52;hpb=b3fcdc882c96d2f2d21e5d29fdc08a450f1c291b;p=dak.git diff --git a/dak/dakdb/update41.py b/dak/dakdb/update41.py index 813a3b70..65661d3c 100755 --- a/dak/dakdb/update41.py +++ b/dak/dakdb/update41.py @@ -61,6 +61,6 @@ def do_update(self): c.execute("UPDATE config SET value = '41' 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 41, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 41, rollback issued. Error message : %s' % (str(msg)))