diff --git a/utils/push_to_zoho.py b/utils/push_to_zoho.py index c18a893b4..731134353 100644 --- a/utils/push_to_zoho.py +++ b/utils/push_to_zoho.py @@ -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)