Skip to content

Commit

Permalink
Fix TypeError in webdriver.transport (concat str + bytes)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Aug 30, 2024
1 parent 686cf3e commit 51736ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/webdriver/webdriver/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def from_http(cls, http_response, decoder=json.JSONDecoder, **kwargs):
headers = ResponseHeaders(http_response.getheaders())
except ValueError:
raise ValueError("Failed to decode response body as JSON:\n" +
http_response.read())
repr(http_response.read()))

return cls(http_response.status, body, headers)

Expand Down

0 comments on commit 51736ad

Please sign in to comment.