From bf8a3068700336d964ae609bf35fa2cc7eb14da3 Mon Sep 17 00:00:00 2001 From: Rich Oberholtzer Date: Thu, 9 Apr 2020 22:20:22 -0400 Subject: [PATCH] making global? --- r0b3bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index 6786dce..80f7260 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -87,7 +87,7 @@ async def on_command_error(ctx, error): if isinstance(error, commands.CommandInvokeError): print(" - ERROR: encountered 'CommandInvokeError'") print(f" - Dumping error: {error}") - last_error = error + global last_error = error await ctx.send("Error, unable to complete your request.") else: print('Oopsie, I found an error...')