Additional attempt to get actor

main2
Bob Mottram 2019-10-21 17:20:33 +01:00
parent 4bc0d11a7c
commit 07ec81e202
1 changed files with 5 additions and 1 deletions

View File

@ -179,7 +179,11 @@ def getPersonBox(baseDir: str,session,wfRequest: {},personCache: {}, \
personJson = getJson(session,personUrl,asHeader,None, \ personJson = getJson(session,personUrl,asHeader,None, \
projectVersion,httpPrefix,domain) projectVersion,httpPrefix,domain)
if not personJson: if not personJson:
return None,None,None,None,None,None,None,None asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
personJson = getJson(session,personUrl,asHeader,None, \
projectVersion,httpPrefix,domain)
if not personJson:
return None,None,None,None,None,None,None,None
boxJson=None boxJson=None
if not personJson.get(boxName): if not personJson.get(boxName):
if personJson.get('endpoints'): if personJson.get('endpoints'):