From 6782fdd34dec5dfb1b23704e7dc1474461c18070 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 26 Feb 2018 18:55:05 -0500 Subject: [PATCH] Add missing coroutine decorator to HTTPClient.get_attachment Fixes #1104 --- discord/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/http.py b/discord/http.py index 4469f9d40..5eac09840 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: