forked from indymedia/epicyon
Debug
parent
3042b84a16
commit
4e11dc1fe7
|
@ -87,7 +87,11 @@ def postJsonString(session,postJsonStr: str, \
|
||||||
|
|
||||||
postResult = session.post(url = inboxUrl, data = postJsonStr, headers=headers)
|
postResult = session.post(url = inboxUrl, data = postJsonStr, headers=headers)
|
||||||
if postResult.status_code<200 or postResult.status_code>202:
|
if postResult.status_code<200 or postResult.status_code>202:
|
||||||
print('WARN: Failed to post to '+inboxUrl+' status code '+str(postResult.status_code))
|
if postResult.status_code==401:
|
||||||
|
print('WARN: >>> Post to '+inboxUrl+' is unauthorized <<<')
|
||||||
|
else:
|
||||||
|
print('WARN: Failed to post to '+inboxUrl)
|
||||||
|
print('status code '+str(postResult.status_code))
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue