Show status code

master
Bob Mottram 2019-08-26 13:05:39 +01:00
parent 815c231f55
commit 17d639ba7d
1 changed files with 1 additions and 1 deletions

View File

@ -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