mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-04-20 19:56:32 -04:00
Merge 92a3ad0992
into 82e50c64f0
This commit is contained in:
commit
ecc798dd29
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
downloads
|
downloads
|
||||||
|
.venv
|
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…
Add table
Reference in a new issue