Check that webfinger returns a dict

This commit is contained in:
bashrc committed 2020-06-23 11:41:12 +01:00
1 parent 976ee3a89d
commit ee70877aeb
13 files changed
+93 -5

No files matched your search

+4
View File
@@ -374,6 +374,10 @@ def sendAnnounceViaServer(baseDir: str, session,
if debug:
print('DEBUG: announce webfinger failed for ' + handle)
return 1
if not isinstance(wfRequest, dict):
print('WARN: Webfinger for ' + handle + ' did not return a dict. ' +
str(wfRequest))
return 1
postToBox = 'outbox'