Skip to content

Commit

Permalink
🐛 use Force(None)
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Nov 9, 2024
1 parent fd23bf9 commit 89cf4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from creart import it
from graia.broadcast.entities.dispatcher import BaseDispatcher
from graia.broadcast.exceptions import PropagationCancelled
from graia.broadcast.entities.signatures import Force
from graia.broadcast.interfaces.dispatcher import DispatcherInterface
from graia.saya import Saya
from launart import Launart, Service
Expand Down Expand Up @@ -139,7 +140,7 @@ def __init__(self, service: RaianBotService):
self.service = service

async def beforeExecution(self, interface: DispatcherInterface):
context: Context = await interface.lookup_param("context", Context, None)
context: Context = await interface.lookup_param("context", Context, Force(None))
if context:
interface.local_storage["bot_config"] = next(
(bot for bot in self.service.config.bots if bot.ensure(context.account)), None # type: ignore
Expand Down

0 comments on commit 89cf4de

Please sign in to comment.