mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add missing coroutine decorator to HTTPClient.get_attachment
Fixes #1104
This commit is contained in:
parent
1c215cfbbe
commit
6782fdd34d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user