X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate42.py;h=3c51232c8735a98540208eba39a1ed4e715f4611;hb=5ae0dac7c89af97eab8ba4fb34e1099a3b9dddc7;hp=48bc9d61af4ccc8b9c6f83b4cbe9334dc668ee7e;hpb=2f30eb272c2dfbdb3544d7e0a0e120a9e4be3294;p=dak.git diff --git a/dak/dakdb/update42.py b/dak/dakdb/update42.py old mode 100755 new mode 100644 index 48bc9d61..3c51232c --- a/dak/dakdb/update42.py +++ b/dak/dakdb/update42.py @@ -44,6 +44,6 @@ def do_update(self): c.execute("UPDATE config SET value = '42' 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 42, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply update 42, rollback issued. Error message : %s' % (str(msg)))