python-telegram-bot/telegram/ext
zeroone2numeral2 105f1ccdb5
Better Exception-Handling for BasePersistence.replace/insert_bot (#2564)
* Catch exceptions raised while copying __dict__/__slots__ in BasePersistence.replace/insert_bot()

Also updated the docstrings to reflect the changes in behavior with unexpected errors

* Tests: added to CustomClass immutable object that would trigger a setattr() exception

* Tests: added new uuid_ property to own CustomClass methods

* Updated AUTHORS.rst

* Revert "Tests: added new uuid_ property to own CustomClass methods"

This reverts commit 9e67463cf7.

* Revert "Tests: added to CustomClass immutable object that would trigger a setattr() exception"

This reverts commit 1c258304

* Removed unneeded Exception cast to string

f-string will perform the string-ification on their own

* Removed another unneeded Exception cast to string

* Added test to parse unparsable objects in __dict__ or __slots__

* Applied black and pylint style suggestions

All lint tests passed

* Fix typo

Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>

Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
2021-06-20 22:14:05 +02:00
..
utils Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
__init__.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
basepersistence.py Better Exception-Handling for BasePersistence.replace/insert_bot (#2564) 2021-06-20 22:14:05 +02:00
callbackcontext.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
callbackdatacache.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
callbackqueryhandler.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
chatmemberhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
choseninlineresulthandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
commandhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
contexttypes.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
conversationhandler.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
defaults.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
dictpersistence.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
dispatcher.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
extbot.py Remove Incorrect Warning About Defaults and ExtBot (#2553) 2021-06-10 12:03:44 +02:00
filters.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
handler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
inlinequeryhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
jobqueue.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
messagehandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
messagequeue.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
picklepersistence.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
pollanswerhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
pollhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
precheckoutqueryhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
regexhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
shippingqueryhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
stringcommandhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
stringregexhandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
typehandler.py Add ContextTypes & BasePersistence.refresh_user/chat/bot_data (#2262) 2021-06-06 10:37:53 +02:00
updater.py Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00