diff options
| author | 2019-01-10 17:21:43 -0500 | |
|---|---|---|
| committer | 2019-01-10 17:21:43 -0500 | |
| commit | 86440dd8ad355d157a0ebf8250d7abe7d56c5982 (patch) | |
| tree | b41552fa1b670c9ce0c3288c59a06c7c6efbba45 | |
| parent | Merge branch 'master' of https://github.com/python-discord/bot (diff) | |
Update error handler to log errors instead of ignore them
| -rw-r--r-- | bot/cogs/free.py | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py index 0880cdd25..b8e9f65d0 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -115,7 +115,10 @@ class Free:                  # reset cooldown so second invocation                  # doesn't bring us back here.                  ctx.command.reset_cooldown(ctx) -                await ctx.invoke(ctx.command) +                # return to avoid needlessly logging the error +                return await ctx.invoke(ctx.command) + +        log.error(error) # Don't ignore other errors  def setup(bot):  |