Closed iven closed 7 years ago
Yea, probably better for the request to check for a non 200 and raise a normal python exception
@iven do we agree that this issue is fixed by https://github.com/thefactory/marathon-python/pull/178? With your example I now get:
>>> c.list_apps()
Traceback (most recent call last):
[...]
MarathonHttpError: MarathonHttpError: HTTP 401 returned with message, "Unauthorized"
@hlerebours Sorry, I'm not using Marathon these days, but I think you can trust your test result. 😸
In this case, the return value is not JSON: