forked from indymedia/epicyon
Report failed webfingers
parent
959c1080c7
commit
a1873e42b6
12
webfinger.py
12
webfinger.py
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue