소스 검색

Moved from aiohttp.get() to aiohttp.ClientSession().get().

tags/v0.4.0
roxie 7 년 전
부모
커밋
13087a9deb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      cogs/Admin.py

+ 1
- 1
cogs/Admin.py 파일 보기

@@ -155,7 +155,7 @@ class Admin():
thing = url.strip('<>')

avaimg = 'avaimg.png'
async with aiohttp.get(thing) as img:
async with aiohttp.ClientSession().get(thing) as img:
with open(avaimg, 'wb') as f:
f.write(await img.read())
with open(avaimg, 'rb') as f:

Loading…
취소
저장