mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2024-12-23 03:05:31 +00:00
Update mkbsd.py to disable SSL verification in aiohttp.ClientSession
This commit is contained in:
parent
f121a8d681
commit
92a3ad0992
2
mkbsd.py
2
mkbsd.py
|
@ -23,7 +23,7 @@ async def download_image(session, image_url, file_path):
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
try:
|
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:
|
async with session.get(url) as response:
|
||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")
|
raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")
|
||||||
|
|
Loading…
Reference in a new issue