This repository has been archived by the owner on Apr 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't try and parse JSON when the response is empty
When the response from a request is empty (eg. when requests are stubbed out in a test), attempting to parse the response as JSON raises an exception. This changes the log_response method to return an 'UNKNOWN' status if the response is empty, consistent with behaviour when the response is JSON but doesn't contain a result key.
- Loading branch information