aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/githubinfo.py
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-08 02:44:49 +0200
committerGravatar D0rs4n <[email protected]>2021-08-08 02:44:49 +0200
commitad6db1d554e25420314901291b7e2aa6e7bc4ca6 (patch)
tree65884e6348631ca95bea5d632f4030c16b067f92 /bot/exts/evergreen/githubinfo.py
parentUpgrade 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/exts/evergreen/githubinfo.py')
-rw-r--r--bot/exts/evergreen/githubinfo.py4
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: