X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate48.py;h=63a8a0e656fa79058279a00fc2c8c07ab6b87f3d;hb=d31ae14a9de247d47d9ff7b3f36705a58a065916;hp=67ea8c5b1ed795e011884005497a99043de4bf4e;hpb=d7b90c4606e6f4fe32965d3c77d8f5f7428b7168;p=dak.git diff --git a/dak/dakdb/update48.py b/dak/dakdb/update48.py old mode 100755 new mode 100644 index 67ea8c5b..63a8a0e6 --- a/dak/dakdb/update48.py +++ b/dak/dakdb/update48.py @@ -44,6 +44,6 @@ def do_update(self): c.execute("UPDATE config SET value = '48' 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 48, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 48, rollback issued. Error message : %s' % (str(msg)))