More general error code checking

main
Bob Mottram 2021-10-18 11:23:42 +01:00
parent 1244d0fafc
commit f81f6977c2
1 changed files with 1 additions and 1 deletions

View File

@ -2099,7 +2099,7 @@ def threadSendPost(session, postJsonStr: str, federationList: [],
postJsonString(session, postJsonStr, federationList,
inboxUrl, signatureHeaderJson,
debug)
if returnCode == 500:
if returnCode >= 500 and returnCode < 600:
break
if debug:
print('Obtained postJsonString for ' + inboxUrl +