kopia lustrzana https://gitlab.com/jaywink/federation
Don't try to parse a nodeinfo document which is for example 404
Refs: https://github.com/friendica/friendica/issues/6472merge-requests/139/head
rodzic
6985a49a9a
commit
2a5a7b76b1
|
@ -73,7 +73,7 @@ def fetch_nodeinfo_document(host):
|
|||
return
|
||||
|
||||
doc, status_code, error = fetch_document(url=url)
|
||||
if not doc:
|
||||
if status_code >= 300 and not doc:
|
||||
return
|
||||
doc = json.loads(doc)
|
||||
return parse_nodeinfo_document(doc, host)
|
||||
|
|
Ładowanie…
Reference in New Issue