Update internal.py
This commit is contained in:
parent
109dec0fe5
commit
77da971416
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ class Image:
|
|||
url=None,
|
||||
path=None):
|
||||
if url is not None:
|
||||
path = asyncio.run(self.get_image(url))
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(self.get_image(url))
|
||||
self.image = path
|
||||
|
||||
async def get_image(self, url, headers=None):
|
||||
|
|
Reference in a new issue