X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate57.py;h=db49db43427d67e7f5f03c0a5ad6df6b4fafd94a;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=45a37dc683dcda6eb4e62d1cb2231deb7ad06539;hpb=1149b8e288d45a56c61b7d3804e25fd33de4f27a;p=dak.git diff --git a/dak/dakdb/update57.py b/dak/dakdb/update57.py index 45a37dc6..db49db43 100755 --- a/dak/dakdb/update57.py +++ b/dak/dakdb/update57.py @@ -44,6 +44,6 @@ def do_update(self): c.execute("UPDATE config SET value = '57' 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 57, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 57, rollback issued. Error message : %s' % (str(msg)))