-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch exceptions raised while copying __dict__/__slots__ in BasePersi… #2564
Catch exceptions raised while copying __dict__/__slots__ in BasePersi… #2564
Conversation
…stence.replace/insert_bot() Also updated the docstrings to reflect the changes in behavior with unexpected errors
I was looking at the contribution guidelines. Quiting:
I did made some changes to the docstring of the |
Question about tests: I've added a I'm not entirely sure how I should update the test Edit: it fails even after 9e67463 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Regarding docstrings: Those look fine, shouldn't be a problem to build them 👌
Regarding tests: I forgot that pytest treats warnings as errors if not handled otherwise … On a closer look I see that we have a for unpickable objects test here. You can copy that and replace lock
with uuid
(you can skip the CustomClass
part and revert your current changes to the tests)
Also, pre-commit
complains about a few things. Please make sure to run pre-commit install
on your machine so that pre-commit
can run on every commit. You can also have it run manually via pre-commit run
. Have a look at the contribution guide for more details :)
Except for the typo, this looks good to me :) |
Thanks for the contribution @zeroone2numeral2 :) |
Thanks @harshil21 for the commit! I've been busy during the weekend And thanks for the merge :) |
Better Exception-Handling for BasePersistence.replace/insert_bot (python-telegram-bot#2564)
…stence.replace/insert_bot()
Also updated the docstrings to reflect the changes in behavior with unexpected errors
closes #2563
Checklist for PRs
.. versionadded:: version
,.. versionchanged:: version
or.. deprecated:: version
to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)AUTHORS.rst
(optional)