making global?

This commit is contained in:
rich committed 2020-04-09 22:20:22 -04:00
1 parent 2a3fc39da6
commit bf8a306870
1 file changed
+1 -1
+1 -1
View File
@@ -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...')