diff --git a/posts.py b/posts.py index ec6151023..72558a195 100644 --- a/posts.py +++ b/posts.py @@ -2694,7 +2694,10 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \ objectNickname=getNicknameFromActor(postJsonObject['object']) objectDomain,objectPort=getDomainFromActor(postJsonObject['object']) if isBlocked(baseDir,nickname,domain,objectNickname,objectDomain): - print('Announce download blocked object: '+objectNickname+'@'+objectDomain) + if objectNickname and objectDomain: + print('Announce download blocked object: '+objectNickname+'@'+objectDomain) + else: + print('Announce download blocked object: '+str(postJsonObject['object'])) return None print('Downloading Announce content for '+postJsonObject['object']) announcedJson= \