Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
054ec417ca
|
@ -19,26 +19,26 @@ async def errors_handler(update, exception):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if isinstance(exception, CantDemoteChatCreator):
|
if isinstance(exception, CantDemoteChatCreator):
|
||||||
logging.debug("Can't demote chat creator")
|
logging.exception("Can't demote chat creator")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(exception, MessageNotModified):
|
if isinstance(exception, MessageNotModified):
|
||||||
logging.debug('Message is not modified')
|
logging.exception('Message is not modified')
|
||||||
return True
|
return True
|
||||||
if isinstance(exception, MessageCantBeDeleted):
|
if isinstance(exception, MessageCantBeDeleted):
|
||||||
logging.debug('Message cant be deleted')
|
logging.exception('Message cant be deleted')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(exception, MessageToDeleteNotFound):
|
if isinstance(exception, MessageToDeleteNotFound):
|
||||||
logging.debug('Message to delete not found')
|
logging.exception('Message to delete not found')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(exception, MessageTextIsEmpty):
|
if isinstance(exception, MessageTextIsEmpty):
|
||||||
logging.debug('MessageTextIsEmpty')
|
logging.exception('MessageTextIsEmpty')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(exception, Unauthorized):
|
if isinstance(exception, Unauthorized):
|
||||||
logging.info(f'Unauthorized: {exception}')
|
logging.exception(f'Unauthorized: {exception}')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if isinstance(exception, InvalidQueryID):
|
if isinstance(exception, InvalidQueryID):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user