catmaid / catpy

Python client for the CATMAID API
MIT License
4 stars 3 forks source link

Catpy should throw if it receives an error response #15

Closed clbarnes closed 7 years ago

clbarnes commented 7 years ago

Currently it only throws on a non-200 status code - but sometimes it receives a 200 full of legitimate JSON, but the JSON is just an object telling us that there was an error on django. We should catch such responses and raise an exception locally.

clbarnes commented 7 years ago

Resolved in https://github.com/catmaid/catpy/commit/8031e46e234333ca1b479ff67736d6d196f8c169