Skip to content

Commit

Permalink
make http error codes fail the action
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi committed Jul 17, 2024
1 parent c83843a commit 7e9b5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/push_to_zoho.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def push_article(
req = requests.post(url, json=payload, headers=headers)
print("creating: ", permalink, ": ", req.status_code)

if req.status_code == 401:
if req.status_code >= 400:
raise RuntimeError(req.text)


Expand Down

0 comments on commit 7e9b5ee

Please sign in to comment.