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,
|
getJson(session, url, hdr, par, projectVersion,
|
||||||
httpPrefix, fromDomain)
|
httpPrefix, fromDomain)
|
||||||
except Exception as e:
|
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)
|
print(e)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
storeWebfingerInCache(nickname + '@' + wfDomain,
|
storeWebfingerInCache(nickname + '@' + wfDomain,
|
||||||
result, cachedWebfingers)
|
result, cachedWebfingers)
|
||||||
|
else:
|
||||||
|
print("WARN: Unable to webfinger " + url + ' ' +
|
||||||
|
'nickname: ' + str(nickname) + ' ' +
|
||||||
|
'domain: ' + str(wfDomain) + ' ' +
|
||||||
|
'headers: ' + str(hdr) + ' ' +
|
||||||
|
'params: ' + str(par))
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue