I would change this to `except Exception as exception` to be consistent with the other code in this diff.