From f0fb417df39ab39bf51cee1a9a46a6f3ba98ccf3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 16 Sep 2019 14:06:38 +0100 Subject: [PATCH] Check for none --- posts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 3e6e9001..b04b65cc 100644 --- a/posts.py +++ b/posts.py @@ -1236,8 +1236,9 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \ print("inboxUrl: "+str(inboxUrl)) print("toPersonId: "+str(toPersonId)) print("sharedInboxUrl: "+str(sharedInboxUrl)) - if inboxUrl.endswith('/actor/inbox'): - inboxUrl=sharedInboxUrl + if inboxUrl: + if inboxUrl.endswith('/actor/inbox'): + inboxUrl=sharedInboxUrl if not inboxUrl: if debug: