forked from indymedia/epicyon
Show status code
parent
815c231f55
commit
17d639ba7d
|
@ -87,7 +87,7 @@ def postJsonString(session,postJsonStr: str, \
|
|||
|
||||
postResult = session.post(url = inboxUrl, data = postJsonStr, headers=headers)
|
||||
if postResult.status_code<200 or postResult.status_code>202:
|
||||
print('WARN: Failed to post to '+inboxUrl)
|
||||
print('WARN: Failed to post to '+inboxUrl+' status code '+str(postResult.status_code))
|
||||
return None
|
||||
return postResult.text
|
||||
|
||||
|
|
Loading…
Reference in New Issue