From 95fce3f6368466cf9767140df99db48f6d83b708 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 7 Jun 2018 18:59:57 -0800 Subject: [PATCH] Fixed paginator in error handling so I can see what I am breaking ;) --- src/exts/events.py | 2 +- src/imports/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exts/events.py b/src/exts/events.py index 0ae4e95..0a7bef5 100644 --- a/src/exts/events.py +++ b/src/exts/events.py @@ -150,7 +150,7 @@ class BotEvents: # noinspection PyMethodMayBeStatic async def on_command_error(self, ctx, error): - pag = utils.Paginator() + pag = utils.Paginator(ctx.bot) import traceback if ctx.channel.id == 418452585683484680 and type(error) == commands.errors.CommandNotFound: return diff --git a/src/imports/utils.py b/src/imports/utils.py index 28be2a2..80c157e 100644 --- a/src/imports/utils.py +++ b/src/imports/utils.py @@ -229,6 +229,7 @@ class Paginator: for field in page: em.add_field(name=field['name'], value=field['value'], inline=field['inline']) _pages[i] = em + return _pages def __len__(self):