Skip to content

Commit

Permalink
Perform the followings,
Browse files Browse the repository at this point in the history
- change the domain to forbidden.example
- zytedata#38
  • Loading branch information
adnan-awan committed Jan 24, 2024
1 parent 068a001 commit 3362da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zyte_api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ def write_output(content):
try:
result = await fut
except Exception as e:
logger.error(str(e))
if store_errors:
write_output(e.parsed.response_body.decode())

if stop_on_errors:
raise

logger.error(str(e))
else:
write_output(result)
finally:
Expand Down

0 comments on commit 3362da0

Please sign in to comment.