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

Added a max_retries option #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

david-pettifor-nd
Copy link

Added an optional "max_retries" parameter (default 5) for when the exit node on the Tor network times out. Should we receive a ConnectionError, regenerate a new ID and try again until we've reached our max_retries. If we still don't get a response, return an official ConnectionError.

Added an optional "max_retries" parameter (default 5) for when the exit node on the Tor network times out.  Should we receive a ConnectionError, regenerate a new ID and try again until we've reached our max_retries.  If we still don't get a response, return an official ConnectionError.
requests_tor.py Outdated Show resolved Hide resolved
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