From f121a8d681c23ab6b678654664d7e658fe9a3746 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Sat, 28 Sep 2024 01:02:36 -0600 Subject: [PATCH 1/2] update gitignore to include .venu --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index de2b2c6..64c220d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store downloads +.venv \ No newline at end of file From 92a3ad099273fbcb292626d4c4eddf2974362263 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Sat, 28 Sep 2024 01:06:39 -0600 Subject: [PATCH 2/2] 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}")