From fc1942ba4d417bf7d885b3dd242fe79b6abbe730 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 19:45:16 +0100 Subject: [PATCH] Allow retries on 404 --- session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.py b/session.py index a8e0f61b..db8b5c87 100644 --- a/session.py +++ b/session.py @@ -98,7 +98,7 @@ def postJsonString(session,postJsonStr: str, \ # postResult = session.post(url = inboxUrl, data = postJsonStr, headers=headers) # if not (postResult.status_code<200 or postResult.status_code>202): # return True - if postResult.status_code>=400 and postResult.status_code<=405: + if postResult.status_code>=400 and postResult.status_code<=405 and postResult.status_code!=404: print('WARN: >>> Post to '+inboxUrl+' is unauthorized <<<') return False,True else: