Fix timeout error not being excepted on Button.click

This commit is contained in:
Lonami Exo
2019-05-05 19:57:09 +02:00
parent b20dc3b804
commit 5ed7bf7815
3 changed files with 8 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ class ServerError(RPCError):
self.message = message
class BotTimeout(RPCError):
class TimedOutError(RPCError):
"""
Clicking the inline buttons of bots that never (or take to long to)
call ``answerCallbackQuery`` will result in this "special" RPCError.
@@ -121,6 +121,9 @@ class BotTimeout(RPCError):
self.message = message
BotTimeout = TimedOutError
class BadMessageError(Exception):
"""Occurs when handling a bad_message_notification."""
ErrorMessages = {

View File

@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.7.4'
__version__ = '1.7.5'