瀏覽代碼

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…
取消
儲存