Parcourir la source

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

tags/v0.4.0
roxie il y a 7 ans
Parent
révision
13087a9deb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      cogs/Admin.py

+ 1
- 1
cogs/Admin.py Voir le fichier

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

Chargement…
Annuler
Enregistrer