Report failed webfingers

main
Bob Mottram 2020-05-07 14:26:55 +01:00
parent 959c1080c7
commit a1873e42b6
1 changed files with 7 additions and 5 deletions

View File

@ -76,17 +76,19 @@ def webfingerHandle(session, handle: str, httpPrefix: str,
getJson(session, url, hdr, par, projectVersion,
httpPrefix, fromDomain)
except Exception as e:
print("Unable to webfinger " + url)
print('nickname: ' + str(nickname))
print('domain: ' + str(wfDomain))
print('headers: ' + str(hdr))
print('params: ' + str(par))
print(e)
return None
if result:
storeWebfingerInCache(nickname + '@' + wfDomain,
result, cachedWebfingers)
else:
print("WARN: Unable to webfinger " + url + ' ' +
'nickname: ' + str(nickname) + ' ' +
'domain: ' + str(wfDomain) + ' ' +
'headers: ' + str(hdr) + ' ' +
'params: ' + str(par))
return result