From a1873e42b639f096105f633a03c19edcfaee4d52 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 7 May 2020 14:26:55 +0100 Subject: [PATCH] Report failed webfingers --- webfinger.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/webfinger.py b/webfinger.py index 73024fd0..0710cbd1 100644 --- a/webfinger.py +++ b/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