block more errors for 401
This commit is contained in:
parent
a1f81d197f
commit
4d360e6b53
|
@ -485,6 +485,7 @@ def fetch_instance_follows(token: str, host: str, domain: str, scheme: str='http
|
||||||
if response.status_code == 403:
|
if response.status_code == 403:
|
||||||
log.error(f"Cannot fetch follow information for {domain} from {host}: {response.content}")
|
log.error(f"Cannot fetch follow information for {domain} from {host}: {response.content}")
|
||||||
|
|
||||||
|
if response.status_code != 401:
|
||||||
raise ValueError(f"Something went wrong: {response.status_code}: {response.content}")
|
raise ValueError(f"Something went wrong: {response.status_code}: {response.content}")
|
||||||
|
|
||||||
# Get the total returned
|
# Get the total returned
|
||||||
|
|
Loading…
Reference in New Issue