python-telegram-bot/telegram
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
..
ext Better Exception-Handling for BasePersistence.replace/insert_bot (#2564) 2021-06-20 22:14:05 +02:00
files Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
games Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
inline Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
passport Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
payment Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
utils Arbitrary callback_data (#1844) 2021-06-06 11:48:48 +02:00
vendor Revert accitendtal change in vendored urllib3 (#1775) 2020-03-28 12:15:51 +01:00
__init__.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
__main__.py Supplement Codacy with DeepSource (#2454) 2021-05-27 09:38:17 +02:00
base.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
bot.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
botcommand.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
callbackquery.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
chat.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
chataction.py Doc Fixes (#2495) 2021-06-06 12:16:23 +02:00
chatinvitelink.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
chatlocation.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
chatmember.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
chatmemberupdated.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
chatpermissions.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
choseninlineresult.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
constants.py Doc Fixes (#2437) 2021-04-30 10:47:41 +02:00
dice.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
error.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
forcereply.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
keyboardbutton.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
keyboardbuttonpolltype.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
loginurl.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
message.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
messageautodeletetimerchanged.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
messageentity.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
messageid.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
parsemode.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
poll.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
proximityalerttriggered.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
py.typed Comply with PEP561 (#2168) 2020-11-01 19:33:01 +01:00
replykeyboardmarkup.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
replykeyboardremove.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
replymarkup.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
update.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
user.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
userprofilephotos.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
version.py Bump version to v13.6 2021-06-06 12:28:01 +02:00
voicechat.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00
webhookinfo.py Add __slots__ (#2345) 2021-05-29 16:18:16 +02:00