mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix error prefix cleaner
This commit is contained in:
parent
411202de45
commit
96a4db6376
1 changed files with 1 additions and 2 deletions
|
|
@ -23,7 +23,6 @@ TelegramAPIError
|
||||||
PollsOptionsLengthTooLong
|
PollsOptionsLengthTooLong
|
||||||
PollOptionsMustBeNonEmpty
|
PollOptionsMustBeNonEmpty
|
||||||
PollQuestionMustBeNonEmpty
|
PollQuestionMustBeNonEmpty
|
||||||
|
|
||||||
MessageWithPollNotFound (with MessageError)
|
MessageWithPollNotFound (with MessageError)
|
||||||
MessageIsNotAPoll (with MessageError)
|
MessageIsNotAPoll (with MessageError)
|
||||||
ObjectExpectedAsReplyMarkup
|
ObjectExpectedAsReplyMarkup
|
||||||
|
|
@ -84,7 +83,7 @@ import time
|
||||||
|
|
||||||
# TODO: Use exceptions detector from `aiograph`.
|
# TODO: Use exceptions detector from `aiograph`.
|
||||||
|
|
||||||
_PREFIXES = ['Error: ', '[Error]: ', 'Bad Request: ', 'Conflict: ', 'Not Found: ']
|
_PREFIXES = ['error: ', '[error]: ', 'bad request: ', 'conflict: ', 'not found: ']
|
||||||
|
|
||||||
|
|
||||||
def _clean_message(text):
|
def _clean_message(text):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue