Archived
1
0
Fork 0

Update internal.py

This commit is contained in:
yzhh 2021-07-31 21:11:39 +08:00
parent 109dec0fe5
commit 77da971416

View file

@ -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):