diff options
| author | 2025-11-10 19:44:23 +0000 | |
|---|---|---|
| committer | 2025-11-10 19:45:42 +0000 | |
| commit | 3b5c355314e602a40081b73e8502ac34314c7d9b (patch) | |
| tree | 606085ba052746d1018d56fa0eca255adde4e387 /pydis_core/site_api.py | |
| parent | Unignore B904 (raise-without-from-inside-except) (diff) | |
Fix B904 across project (raise-without-from-except-inside)
Diffstat (limited to 'pydis_core/site_api.py')
| -rw-r--r-- | pydis_core/site_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/site_api.py b/pydis_core/site_api.py index f948cde3..bcad781a 100644 --- a/pydis_core/site_api.py +++ b/pydis_core/site_api.py @@ -92,9 +92,9 @@ class APIClient: try: response_json = await response.json() raise ResponseCodeError(response=response, response_json=response_json) - except aiohttp.ContentTypeError: + except aiohttp.ContentTypeError as e: response_text = await response.text() - raise ResponseCodeError(response=response, response_text=response_text) + raise ResponseCodeError(response=response, response_text=response_text) from e async def request(self, method: str, endpoint: str, *, raise_for_status: bool = True, **kwargs) -> dict | None: """ |