From 33bfce221540097131733a4f7c0659d479d8fb1b Mon Sep 17 00:00:00 2001 From: Jylpah Date: Thu, 13 Feb 2020 07:47:07 +0200 Subject: [PATCH] Fix handling of None stats --- blitzutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blitzutils.py b/blitzutils.py index 932e03c..8a613ff 100644 --- a/blitzutils.py +++ b/blitzutils.py @@ -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')