diff options
| author | Rapptz <[email protected]> | 2017-10-24 00:50:20 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-10-24 00:50:20 -0400 |
| commit | f0c53e4519c3650a691de96658ba598d0c476c0f (patch) | |
| tree | 9401f8fccd1211c5a16e4bc4a92d67302512825d /discord/http.py | |
| parent | is_avatar_animated should always return bool (diff) | |
| download | discord.py-f0c53e4519c3650a691de96658ba598d0c476c0f.tar.xz discord.py-f0c53e4519c3650a691de96658ba598d0c476c0f.zip | |
Fix URI quoting in Route.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py index 4d0ae2e1..70d47424 100644 --- a/discord/http.py +++ b/discord/http.py @@ -53,7 +53,7 @@ class Route: self.method = method url = (self.BASE + self.path) if parameters: - self.url = url.format(**{k: _uriquote(v) for k, v in parameters.items()}) + self.url = url.format(**{k: _uriquote(v) if isinstance(v, str) else v for k, v in parameters.items()}) else: self.url = url |