diff options
| author | 2020-10-18 09:10:54 +0300 | |
|---|---|---|
| committer | 2020-10-18 09:10:54 +0300 | |
| commit | 456a6fbf76baf7cfdcbd21864c0d410297acc1ff (patch) | |
| tree | 7e82722d69b7c387101fe4832126e7a6354cc329 | |
| parent | Refactor PEP error embed sending (diff) | |
Fix argument offset
| -rw-r--r-- | bot/exts/utils/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index e134a0994..6d8d98695 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -286,7 +286,7 @@ class Utils(Cog): return pep_embed - @pep_cache(arg_offset=2) + @pep_cache(arg_offset=1) async def get_pep_embed(self, pep_nr: int) -> Tuple[Embed, bool]: """Fetch, generate and return PEP embed. Second item of return tuple show does getting success.""" response = await self.bot.http_session.get(self.peps[pep_nr]) |