Skip to content

Releases: exponea/exponea-python-sdk

Bug fix: Catch all incorrect responses

Choose a tag to compare

@lukasotocerny lukasotocerny released this 31 Oct 08:27

Catch all exceptions when decoding a JSON response from Exponea.

Catch erroneous response

Choose a tag to compare

@lukasotocerny lukasotocerny released this 30 Oct 10:20

Currently, the SDK was applying

result = json.loads(response.text)

without catching any errors. Exponea sometimes returns a non-JSON format response which causes this to crash.
I've added logging the response from Exponea and raising APIException.

Refactoring code

Choose a tag to compare

@lukasotocerny lukasotocerny released this 03 Oct 16:12
baca280

Refactored code based on #3.