We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a91f97 commit b521856Copy full SHA for b521856
1 file changed
zyte_api/_errors.py
@@ -33,8 +33,7 @@ def __init__(self, *args: Any, **kwargs: Any):
33
@property
34
def parsed(self) -> ParsedError:
35
"""Response as a :class:`ParsedError` object."""
36
- # TODO: self.response_content can be None but ParsedError doesn't expect it
37
- return ParsedError.from_body(self.response_content) # type: ignore[arg-type]
+ return ParsedError.from_body(self.response_content or b"")
38
39
def __str__(self) -> str:
40
return (
0 commit comments