Skip to content

Commit

Permalink
also dummy check for TCPConnector instance
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Dec 6, 2024
1 parent cb43eed commit 91e5c64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openbb_platform/core/openbb_core/provider/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ async def get_async_requests_session(**kwargs) -> ClientSession:

# SSL settings get passed to the TCPConnector used by the session.
connector = (
aiohttp.TCPConnector(ttl_dns_cache=300, **ssl_kwargs) if ssl_kwargs else None
aiohttp.TCPConnector(ttl_dns_cache=300, **ssl_kwargs)
if ssl_kwargs
else kwargs.pop("connector", None)
)

conn_kwargs = {"connector": connector} if connector else {}
Expand Down

0 comments on commit 91e5c64

Please sign in to comment.