diff --git a/cogs/other.py b/cogs/other.py index d426780..bdeb1a1 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -551,7 +551,8 @@ class OtherCog(commands.Cog): }, follow_redirects=False ) - response.raise_for_status() + if response.status_code not in range(200, 400): + response.raise_for_status() except httpx.HTTPError as e: raise RuntimeError(f"Failed to upload OCR content: `{e}`") else: