X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate63.py;h=e9e5c0f1912eb1b1aca643fcd8faaa7f0c9e2d65;hb=fcfcdcc15785c01785b18fecc903b3aef2b367f6;hp=9b1187c6e19d9f814494e3074923ebf170425da0;hpb=c43e58d8aeea3dfbbad8f289fa02b97c7a9e0169;p=dak.git diff --git a/dak/dakdb/update63.py b/dak/dakdb/update63.py old mode 100755 new mode 100644 index 9b1187c6..e9e5c0f1 --- 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)))