mirror of https://gitlab.com/bashrc2/epicyon
More general error code checking
parent
1244d0fafc
commit
f81f6977c2
2
posts.py
2
posts.py
|
@ -2099,7 +2099,7 @@ def threadSendPost(session, postJsonStr: str, federationList: [],
|
||||||
postJsonString(session, postJsonStr, federationList,
|
postJsonString(session, postJsonStr, federationList,
|
||||||
inboxUrl, signatureHeaderJson,
|
inboxUrl, signatureHeaderJson,
|
||||||
debug)
|
debug)
|
||||||
if returnCode == 500:
|
if returnCode >= 500 and returnCode < 600:
|
||||||
break
|
break
|
||||||
if debug:
|
if debug:
|
||||||
print('Obtained postJsonString for ' + inboxUrl +
|
print('Obtained postJsonString for ' + inboxUrl +
|
||||||
|
|
Loading…
Reference in New Issue