From bc8e494fba192768168e698eaacc82edcb2733cb Mon Sep 17 00:00:00 2001 From: Andrei Date: Sat, 12 Nov 2016 21:06:23 -0600 Subject: [PATCH] bugfix - don't to_bytes keys in args --- disco/api/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/api/http.py b/disco/api/http.py index 951a143..2ebf941 100644 --- a/disco/api/http.py +++ b/disco/api/http.py @@ -202,7 +202,7 @@ class HTTPClient(LoggingClass): kwargs['headers'] = self.headers # Build the bucket URL - args = {to_bytes(k): to_bytes(v) for k, v in six.iteritems(args)} + args = {k: to_bytes(v) for k, v in six.iteritems(args)} filtered = {k: (v if k in ('guild', 'channel') else '') for k, v in six.iteritems(args)} bucket = (route[0].value, route[1].format(**filtered))