From 22094eb477711e644924eaeb2424c8cef20e637a Mon Sep 17 00:00:00 2001 From: Forden Date: Wed, 5 Aug 2020 15:06:02 +0300 Subject: [PATCH] Patch 1 (#398) * Update callback_data_factory.py * Update callback_data_factory_simple.py --- examples/callback_data_factory.py | 2 +- examples/callback_data_factory_simple.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/callback_data_factory.py b/examples/callback_data_factory.py index 9a8affe9..2335ea95 100644 --- a/examples/callback_data_factory.py +++ b/examples/callback_data_factory.py @@ -112,7 +112,7 @@ async def query_post_vote(query: types.CallbackQuery, callback_data: dict): @dp.errors_handler(exception=MessageNotModified) async def message_not_modified_handler(update, error): - return True + return True # errors_handler must return True if error was handled correctly if __name__ == '__main__': diff --git a/examples/callback_data_factory_simple.py b/examples/callback_data_factory_simple.py index 5fc9c548..a6d246d5 100644 --- a/examples/callback_data_factory_simple.py +++ b/examples/callback_data_factory_simple.py @@ -61,7 +61,7 @@ async def callback_vote_action(query: types.CallbackQuery, callback_data: dict): @dp.errors_handler(exception=MessageNotModified) # handle the cases when this exception raises async def message_not_modified_handler(update, error): - return True + return True # errors_handler must return True if error was handled correctly if __name__ == '__main__':