Add missing coroutine decorator to HTTPClient.get_attachment

Fixes #1104
This commit is contained in:
Rapptz 2018-02-26 18:55:05 -05:00
parent 1c215cfbbe
commit 6782fdd34d

View File

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