Closed chen23 closed 4 years ago
@chen23 if a binary kwarg, is there a status code you DO want to error on even if overriding?
how about: disable_icr_http_error=False and that would become
if not self.disable_icr_http_error and not in range(200,207):
@chen23 will you test my PR and send me the details?
archiving this repo, this request will not be implemented.
Ideally this library would not throw exceptions for anything other than a 200/209 status code. To prevent this breaking current usage it would be nice to make this configurable and have an option to override (i.e. do_not_throw_exceptions_for_non_200_209_status_codes=true).
https://github.com/F5Networks/f5-icontrol-rest-python/blob/a43909ad4978bac5f4f29bc0380e025b3c8da127/icontrol/session.py#L289