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

Fix retrying for ignored error codes #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SharpKoi
Copy link

  • Fix issue Ignoring error codes leads to consistently retrying while sending request #248.
  • In this PR, I "manually" checked if ret_code is not zero and not ignored, the program will never return the JSON response, either raise an error or retry instead. Note that I did not write tests for scenarios like retrying, ignoring, or raising errors since I believe refactoring the _submit_request function is necessary. Therefore, I've focus merely on resolving the issue I mentioned.

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.

1 participant