From 92a3ad099273fbcb292626d4c4eddf2974362263 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Sat, 28 Sep 2024 01:06:39 -0600 Subject: [PATCH] Update mkbsd.py to disable SSL verification in aiohttp.ClientSession --- mkbsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkbsd.py b/mkbsd.py index 2b33310..75fb314 100644 --- a/mkbsd.py +++ b/mkbsd.py @@ -23,7 +23,7 @@ async def download_image(session, image_url, file_path): async def main(): try: - async with aiohttp.ClientSession() as session: + async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(verify_ssl=False)) as session: async with session.get(url) as response: if response.status != 200: raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")