aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py
index 3d3d0de36..f54ce8d5e 100644
--- a/bot/cogs/utils.py
+++ b/bot/cogs/utils.py
@@ -31,7 +31,7 @@ class Utils:
"""
# Attempt to fetch the PEP from Github.
- pep_url = f"{self.base_github_pep_url}{pep_number:04}.txt"
+ pep_url = f"{self.base_github_pep_url}{pep_number.zfill(4)}.txt"
log.trace(f"Requesting PEP {pep_number} with {pep_url}")
response = await self.bot.http_session.get(pep_url)