Skip to content
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

Introduce on_exception handler. #1

Merged
merged 2 commits into from
Dec 4, 2021
Merged

Conversation

warownia1
Copy link

New on_exception parameter takes a function which is called whenever an exception is captured. It allows to perform extra actions on error as well as interrupt further retries dynamically.

Copy link
Member

@asuiu asuiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @warownia1 ,
thanks for you Pull Request, and sorry for late reply/review, for some reasons I wasn't subscribed to be notified of new PRs on this repo, but fixed now. It's very useful, I also felt the need of such a callback handler a couple of times, but every time was over busy on other things to implement it.
Thanks for it, great code/documentation, and nice that it's also tested.
I'm merging it right now.

@asuiu asuiu merged commit 093ac26 into eSAMTrade:master Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants