Fix TypeError when get json-encoded content of a response
Before adoption: this commit came in with the history the project adopted, so no landing records it.
``self.content`` could be ``None``, so ``len(self.content)`` may raise ``TypeError: object of type 'NoneType' has no len()``
authored by messense · committed by messense · parent 989e8f1 · Browse files · 2 files+12 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
2 files+12 added−1 removed
- tests:+11 added−0 removed
- other:+1 added−1 removed