You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@propertydefok(self):
"""Returns True if :attr:`status_code` is less than 400, False if not. This attribute checks if the status code of the response is between 400 and 600 to see if there was a client error or a server error. If the status code is between 200 and 400, this will return True. This is **not** a check to see if the response code is ``200 OK``. """try:
self.raise_for_status()
exceptHTTPError:
returnFalsereturnTrue
https://docs.python-requests.org/en/latest/_modules/requests/models/#Response.raise_for_status
Хочется иметь такой же метод для его промежуточного использования:
The text was updated successfully, but these errors were encountered: