Add missing coroutine decorator to HTTPClient.get_attachment
Fixes #1104
This commit is contained in:
@@ -220,6 +220,7 @@ class HTTPClient:
|
|||||||
# We've run out of retries, raise.
|
# We've run out of retries, raise.
|
||||||
raise HTTPException(r, data)
|
raise HTTPException(r, data)
|
||||||
|
|
||||||
|
@asyncio.coroutine
|
||||||
def get_attachment(self, url):
|
def get_attachment(self, url):
|
||||||
resp = yield from self._session.get(url)
|
resp = yield from self._session.get(url)
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user