Check that webfinger exists

merge-requests/8/head
Bob Mottram 2021-01-13 23:43:11 +00:00
parent b756203651
commit 6b1991d472
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ def getPersonBox(baseDir: str, session, wfRequest: {},
asHeader = {
'Accept': 'application/activity+json; profile="' + profileStr + '"'
}
if not wfRequest:
print('No webfinger given')
return None, None, None, None, None, None, None
if not wfRequest.get('errors'):
personUrl = getUserUrl(wfRequest, sourceId)
else: