mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Patch 1 (#398)
* Update callback_data_factory.py * Update callback_data_factory_simple.py
This commit is contained in:
parent
d1452b1620
commit
22094eb477
2 changed files with 2 additions and 2 deletions
|
|
@ -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__':
|
||||
|
|
|
|||
|
|
@ -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__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue