making global?
This commit is contained in:
1 parent
2a3fc39da6
commit
bf8a306870
1 file changed
+1
-1
+1
-1
@@ -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...')
|
||||
|
||||
Reference in new issue
Block a user