X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate44.py;h=bce1fe7db3fcd00934836e2f2899c8435662348c;hb=7634c6b12df2eaf14e4b07e27222c87cb740268d;hp=465f2fce6a86a1ef65475052fad7937615d8b8ca;hpb=07b684fe45eaeb2146414b0d1363e5c2ffda9e76;p=dak.git diff --git a/dak/dakdb/update44.py b/dak/dakdb/update44.py index 465f2fce..bce1fe7d 100755 --- a/dak/dakdb/update44.py +++ b/dak/dakdb/update44.py @@ -47,6 +47,6 @@ def do_update(self): c.execute("UPDATE config SET value = '44' 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 44, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 44, rollback issued. Error message : %s' % (str(msg)))