Skip to content
Myr

consistency: .text shouldn't recover from unicode decoding errors, either

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

authored by Shivaram Lingamneni · committed by Shivaram Lingamneni · parent a8555d8 · Browse files · 1 file+0 added−2 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+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:requests/models.py-2 removed
808 unmodified lines
809 # indicate a misspelling or similar mistake.810 #811 # So we try blindly encoding.812 content = str(self.content, errors='replace')813 except (UnicodeError, TypeError):814 pass813814 return content815816 def raise_for_status(self, allow_redirects=True):
19 unmodified lines