Skip to content

Commit

Permalink
remove noqa, fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkorsakov committed Feb 3, 2024
1 parent 8226e4e commit 7668a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/mega/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def start(message: Message, dialog_manager: DialogManager):


async def on_unknown_intent(event: ErrorEvent, dialog_manager: DialogManager):
"""Example of handling UnknownIntent Error and starting new dialog.""" # noqa: D401, E501
# Example of handling UnknownIntent Error and starting new dialog.
logging.error("Restarting dialog: %s", event.exception)
if event.update.callback_query:
await event.update.callback_query.answer(
Expand Down
4 changes: 2 additions & 2 deletions example/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ async def start(message: Message, dialog_manager: DialogManager):


async def on_unknown_intent(event, dialog_manager: DialogManager):
"""Example of handling UnknownIntent Error and starting new dialog.""" # noqa: D401, E501
# Example of handling UnknownIntent Error and starting new dialog.
logging.error("Restarting dialog: %s", event.exception)
await dialog_manager.start(
DialogSG.greeting, mode=StartMode.RESET_STACK, show_mode=ShowMode.SEND,
)


async def on_unknown_state(event, dialog_manager: DialogManager):
"""Example of handling UnknownState Error and starting new dialog.""" # noqa: D401, E501
# Example of handling UnknownState Error and starting new dialog.
logging.error("Restarting dialog: %s", event.exception)
await dialog_manager.start(
DialogSG.greeting, mode=StartMode.RESET_STACK, show_mode=ShowMode.SEND,
Expand Down

0 comments on commit 7668a29

Please sign in to comment.