Check for none

This commit is contained in:
bashrc committed 2019-10-20 23:47:01 +01:00
1 parent 6dc0e3afd4
commit 5dc1f3db0d
1 file changed
+3 -1
+3 -1
View File
@@ -906,7 +906,9 @@ if args.actor:
personUrl = getUserUrl(wfRequest)
if nickname==domain:
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:
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None)