Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cve_bin_tool/data_sources/epss_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async def download_epss_data(self):
# Check if the file is older than 24 hours
if time_difference > timedelta(hours=24):
try:
async with aiohttp.ClientSession(headers=HTTP_HEADERS) as session:
async with aiohttp.ClientSession(
headers=HTTP_HEADERS, trust_env=True
) as session:
async with session.get(self.DATA_SOURCE_LINK) as response:
response.raise_for_status()
self.LOGGER.info("Getting EPSS data...")
Expand All @@ -89,7 +91,9 @@ async def download_epss_data(self):

else:
try:
async with aiohttp.ClientSession(headers=HTTP_HEADERS) as session:
async with aiohttp.ClientSession(
headers=HTTP_HEADERS, trust_env=True
) as session:
async with session.get(self.DATA_SOURCE_LINK) as response:
response.raise_for_status()
self.LOGGER.info("Getting EPSS data...")
Expand Down