Closed clbarnes closed 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.
Resolved in https://github.com/catmaid/catpy/commit/8031e46e234333ca1b479ff67736d6d196f8c169
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.