Skip to content

Commit

Permalink
Ignore curl_cffi warnings for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Jan 2, 2024
1 parent aa6f320 commit 9ad6d7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
overload,
)
from urllib.parse import quote as _uriquote
import warnings

import aiohttp
from curl_cffi import requests
Expand Down Expand Up @@ -166,6 +167,9 @@ def _gen_accept_encoding_header():
# aiohttp does it for us on newer versions anyway
pass

# HACK: Ignore event loop warnings from curl_cffi
warnings.filterwarnings('ignore', module='curl_cffi')


async def json_or_text(response: Union[aiohttp.ClientResponse, requests.Response]) -> Union[Dict[str, Any], str]:
if isinstance(response, aiohttp.ClientResponse):
Expand Down

0 comments on commit 9ad6d7d

Please sign in to comment.