diff options
| author | 2021-08-08 02:44:49 +0200 | |
|---|---|---|
| committer | 2021-08-08 02:44:49 +0200 | |
| commit | ad6db1d554e25420314901291b7e2aa6e7bc4ca6 (patch) | |
| tree | 65884e6348631ca95bea5d632f4030c16b067f92 /bot | |
| parent | Upgrade code transparency in the StackOverflow Cog (diff) | |
Update GithubInfo cog encode mechaninsm
Update Githubinfo to use quote instead of quote_plus when fetching repository info.
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/githubinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py index 15f6154c..d29f3aa9 100644 --- a/bot/exts/evergreen/githubinfo.py +++ b/bot/exts/evergreen/githubinfo.py @@ -1,7 +1,7 @@ import logging import random from datetime import datetime -from urllib.parse import quote_plus +from urllib.parse import quote, quote_plus import discord from discord.ext import commands @@ -123,7 +123,7 @@ class GithubInfo(commands.Cog): return async with ctx.typing(): - repo_data = await self.fetch_data(f"{GITHUB_API_URL}/repos/{quote_plus(repo)}") + repo_data = await self.fetch_data(f"{GITHUB_API_URL}/repos/{quote(repo)}") # There won't be a message key if this repo exists if "message" in repo_data: |