Explorar el Código

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

tags/v0.4.0
roxie hace 7 años
padre
commit
13087a9deb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      cogs/Admin.py

+ 1
- 1
cogs/Admin.py Ver fichero

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

Cargando…
Cancelar
Guardar