Skip to content

Commit

Permalink
Fixed runtinewarning error
Browse files Browse the repository at this point in the history
Fixed the bug of [issue 523](anmol098#523)

sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited
  • Loading branch information
iamgojoof6eyes authored Sep 21, 2024
1 parent dbb6bd8 commit 4e60064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/manager_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def load_remote_resources(**resources: str):
:param resources: Static queries, formatted like "IDENTIFIER"="URL".
"""
for resource, url in resources.items():
DownloadManager._REMOTE_RESOURCES_CACHE[resource] = DownloadManager._client.get(url)
DownloadManager._REMOTE_RESOURCES_CACHE[resource] = await DownloadManager._client.get(url)

@staticmethod
async def close_remote_resources():
Expand Down

0 comments on commit 4e60064

Please sign in to comment.