Merge pull request #36 from NotoriousRebel/dev

Fixed logic error
This commit is contained in:
Matt 2020-02-11 14:35:11 -05:00 committed by GitHub
commit 457767ce9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,7 +434,7 @@ async def fetch(session, url, params='', json=False, proxy="") -> Union[str, dic
async with session.get(url, params=params, proxy=proxy) as response: async with session.get(url, params=params, proxy=proxy) as response:
return await response.text() if json is False else await response.json() return await response.text() if json is False else await response.json()
else: else:
async with session.get(url, proxy=proxy) as response: async with session.get(url) as response:
await asyncio.sleep(2) await asyncio.sleep(2)
return await response.text() if json is False else await response.json() return await response.text() if json is False else await response.json()