mirror of https://gitlab.com/bashrc2/epicyon
Avoid none objects
parent
6bed85c595
commit
3fff5275db
3
posts.py
3
posts.py
|
@ -2694,7 +2694,10 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \
|
||||||
objectNickname=getNicknameFromActor(postJsonObject['object'])
|
objectNickname=getNicknameFromActor(postJsonObject['object'])
|
||||||
objectDomain,objectPort=getDomainFromActor(postJsonObject['object'])
|
objectDomain,objectPort=getDomainFromActor(postJsonObject['object'])
|
||||||
if isBlocked(baseDir,nickname,domain,objectNickname,objectDomain):
|
if isBlocked(baseDir,nickname,domain,objectNickname,objectDomain):
|
||||||
|
if objectNickname and objectDomain:
|
||||||
print('Announce download blocked object: '+objectNickname+'@'+objectDomain)
|
print('Announce download blocked object: '+objectNickname+'@'+objectDomain)
|
||||||
|
else:
|
||||||
|
print('Announce download blocked object: '+str(postJsonObject['object']))
|
||||||
return None
|
return None
|
||||||
print('Downloading Announce content for '+postJsonObject['object'])
|
print('Downloading Announce content for '+postJsonObject['object'])
|
||||||
announcedJson= \
|
announcedJson= \
|
||||||
|
|
Loading…
Reference in New Issue