Skip to content
Myr

Fixes issues #496 by having Response.ok catch all Requests exceptions.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Pulec · committed by Steve Pulec · parent 5c575b3 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
658 unmodified lines
659 @property660 def ok(self):661 try:662 self.raise_for_status()663 except HTTPError:663 except RequestException:664 return False665 return True666667 def iter_content(self, chunk_size=10 * 1024, decode_unicode=False):
167 unmodified lines