-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Raise exceptions by default; opt to silence in message listener task #3202
Raise exceptions by default; opt to silence in message listener task #3202
Conversation
3e83607
to
1615a97
Compare
Update looks good, but I don't see any reference to this option in docs. Is that coming separately, or should be added here? |
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.
lgtm!
10fda00
to
18a632a
Compare
@pacrob I added a more extensive update of the docs here since it was stale. Thanks for the poke. Take a look again and lmk if anything looks off. I also took the |
- Remove the ``endpoint_uri`` argument from the ``PersistentConenctionProvider`` base class, opting for defining it in the inheriting classes instead. - Update the documentation around the ``WebsocketProviderV2`` class to reflect the current state + document ``PersistentConenctionProvider`` under a new section.
18a632a
to
d3bab44
Compare
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.
lgtm!
What was wrong?
It is often best to fail hard and fast and be able to silence exceptions rather than let exceptions possibly go unnoticed. We were defaulting to silencing exceptions in the message listener task for
WebsocketProviderV2
. This hasn't been released yet and so this change just aims to tweak the configuration and opt to silence exceptions that are raised by default.How was it fixed?
raise_listener_task_exceptions
->silence_listener_task_exceptions
Todo:
Cute Animal Picture