Check for none

main2
Bob Mottram 2019-10-20 23:47:01 +01:00
parent 6dc0e3afd4
commit 5dc1f3db0d
1 changed files with 3 additions and 1 deletions

View File

@ -906,7 +906,9 @@ if args.actor:
personUrl = getUserUrl(wfRequest) personUrl = getUserUrl(wfRequest)
if nickname==domain: if nickname==domain:
personUrl=personUrl.replace('/users/','/actor/').replace('/channel/','/actor/').replace('/profile/','/actor/') personUrl=personUrl.replace('/users/','/actor/').replace('/channel/','/actor/').replace('/profile/','/actor/')
#print('personUrl: '+personUrl) if not personUrl:
print('Failed to get actor url')
sys.exit()
if '/channel/' in personUrl: if '/channel/' in personUrl:
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None) personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None)