Skip to content

Commit

Permalink
fixed typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhiikorzh committed Nov 14, 2023
1 parent cc8d9e1 commit fc2b410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapy/downloadermiddlewares/httpcompression.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _raise_unsupported_compressors(self, request: Request):
for unsupp in unsupported:
if unsupp in self._raise_unsupported:
raise NotSupported(
f"Request is configured with Accept-Encoding header with unsupported encoding(s): {unsupp}"
f"Request is configured with Accept-Encoding header with unsupported encoding(s): "
f"{unsupp.decode()}"
)

def _decode(self, body: bytes, encoding: bytes) -> bytes:
Expand Down

0 comments on commit fc2b410

Please sign in to comment.