mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 10:17:05 +02:00
Fix handling of None stats
This commit is contained in:
1 parent
eeb1d7fc6d
commit
33bfce2215
1 file changed
+1
-1
+1
-1
@@ -252,7 +252,7 @@ async def open_JSON(filename: str, chk_JSON_func = None) -> dict:
|
||||
return None
|
||||
|
||||
|
||||
async def get_url_JSON(session: aiohttp.ClientSession, url: str, chk_JSON_func = None, max_tries = MAX_RETRIES) -> dict:
|
||||
async def get_url_JSON(session: aiohttp.ClientSession, url, chk_JSON_func = None, max_tries = MAX_RETRIES) -> dict:
|
||||
"""Retrieve (GET) an URL and return JSON object"""
|
||||
if session == None:
|
||||
error('Session must be initialized first')
|
||||
|
||||
Reference in new issue
Block a user