Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nordpool/elspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def _io(self, url, params):

resp = await self.client.get(url, params=params)
# aiohttp
if inspect.isawaitable(resp.json()):
if inspect.iscoroutinefunction(resp.json):
return await resp.json()
# Httpx and asks
return resp.json()
Expand Down