aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-06 18:10:45 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-06 18:10:45 +0100
commitd2ddd7468b97bfb33855cef2c55361d86c4b65c9 (patch)
tree57eeb20f5456573f8c32415538efc131c3f61e93
parentFix build and build base on Travis (diff)
Fix PEP machine
-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)