mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add missing coroutine decorator to HTTPClient.get_attachment
Fixes #1104
This commit is contained in:
1 parent
1c215cfbbe
commit
6782fdd34d
1 file changed
+1
@@ -220,6 +220,7 @@ class HTTPClient:
|
||||
# We've run out of retries, raise.
|
||||
raise HTTPException(r, data)
|
||||
|
||||
@asyncio.coroutine
|
||||
def get_attachment(self, url):
|
||||
resp = yield from self._session.get(url)
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user