From f81f6977c248186b931045c0d567a5d75a99a856 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Oct 2021 11:23:42 +0100 Subject: [PATCH] More general error code checking --- posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 6e7878105..045136f81 100644 --- a/posts.py +++ b/posts.py @@ -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 +