parent
8874aa3dd2
commit
874c2cd3c9
@ -890,6 +890,8 @@ class BotBase(GroupMixin):
|
|||||||
try:
|
try:
|
||||||
if await self.can_run(ctx, call_once=True):
|
if await self.can_run(ctx, call_once=True):
|
||||||
await ctx.command.invoke(ctx)
|
await ctx.command.invoke(ctx)
|
||||||
|
else:
|
||||||
|
raise errors.CheckFailure('The global check once functions failed.')
|
||||||
except errors.CommandError as exc:
|
except errors.CommandError as exc:
|
||||||
await ctx.command.dispatch_error(ctx, exc)
|
await ctx.command.dispatch_error(ctx, exc)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user