From 71f2b04bfc347ca29c5570146ee840259a656d49 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 10:51:32 +0100 Subject: [PATCH] Exit earlier --- posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 14d60988..f79f74cd 100644 --- a/posts.py +++ b/posts.py @@ -1944,8 +1944,10 @@ def createSharedInboxIndex(baseDir: str,sharedBoxDir: str, \ continue actorNickname=getNicknameFromActor(postJsonObject['actor']) + if not actorNickname: + continue actorDomain,actorPort=getDomainFromActor(postJsonObject['actor']) - if not (actorNickname and actorDomain): + if not actorDomain: continue # is the actor followed by this account?