diff options
| author | Rapptz <[email protected]> | 2018-02-26 18:55:05 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-02-26 18:55:05 -0500 |
| commit | 6782fdd34dec5dfb1b23704e7dc1474461c18070 (patch) | |
| tree | 3329e1ab7c4f0a6a0b19311e8dd18bbb913be91d | |
| parent | Don't cache webhook users. (diff) | |
| download | discord.py-6782fdd34dec5dfb1b23704e7dc1474461c18070.tar.xz discord.py-6782fdd34dec5dfb1b23704e7dc1474461c18070.zip | |
Add missing coroutine decorator to HTTPClient.get_attachment
Fixes #1104
| -rw-r--r-- | discord/http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 4469f9d4..5eac0984 100644 --- a/discord/http.py +++ b/discord/http.py @@ -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: |