Tweak Webfinger

pull/14/head
Thomas Sileo 2018-07-22 13:06:06 +02:00
rodzic 70f45768e1
commit fdf35b1f32
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,7 @@ def webfinger(resource: str) -> Optional[Dict[str, Any]]:
continue
break
except requests.HTTPError as http_error:
if http_error.response.status_code == 404:
if http_error.response.status_code in [403, 404]:
is_404 = True
continue
raise