diff options
| author | 2020-05-17 10:32:14 +0300 | |
|---|---|---|
| committer | 2020-05-17 10:32:14 +0300 | |
| commit | fb27b234a92e4572697a973b3f151863bb13bea1 (patch) | |
| tree | 090a62ec60ab2e0c5ed278a99a388530c1e7c3da | |
| parent | PEP Improvisations: Simplify cache item check on `async_cache` decorator (diff) | |
PEP Improvisations: Fix formatting of blocks
Added newline before logging after indention block.
Co-authored-by: Mark <[email protected]>
| -rw-r--r-- | bot/cogs/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py index a2f9d362e..12f7204fc 100644 --- a/bot/cogs/utils.py +++ b/bot/cogs/utils.py @@ -202,6 +202,7 @@ class Utils(Cog): async with self.bot.http_session.get(self.peps_listing_api_url) as resp: listing = await resp.json() + log.trace("Got PEP URLs listing from GitHub API") for file in listing: @@ -209,6 +210,7 @@ class Utils(Cog): if name.startswith("pep-") and name.endswith((".rst", ".txt")): pep_number = name.replace("pep-", "").split(".")[0] self.peps[int(pep_number)] = file["download_url"] + log.info("Successfully refreshed PEP URLs listing.") @command(name='pep', aliases=('get_pep', 'p')) |