From d2ddd7468b97bfb33855cef2c55361d86c4b65c9 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 6 Jun 2018 18:10:45 +0100 Subject: Fix PEP machine --- bot/cogs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3