Преглед изворни кода

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…
Откажи
Сачувај