X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate41.py;h=65661d3c420eae1c441ed948203bf1f9128e0b5e;hb=7634c6b12df2eaf14e4b07e27222c87cb740268d;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)))