Skip to content

Commit 6fe3b6d

Browse files
fix(requests): surface JavaScript fetch errors with descriptive messages
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent fb35543 commit 6fe3b6d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

pydoll/browser/requests/request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ async def request(
152152
logger.error(f'Request failed: {exc}')
153153
raise HTTPError(f'Request failed: {str(exc)}') from exc
154154
else:
155-
# Check for JS fetch error (runs only if try succeeded)
156155
result_value = result['result']['result']['value']
157156
if 'error' in result_value:
158157
raise HTTPError(f'Fetch error: {result_value["error"]}')

0 commit comments

Comments
 (0)