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

Retry on ChunkedEncodingError; Break loop on all errors #1734

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

ouziel-slama
Copy link
Contributor

No description provided.

@@ -16,7 +16,7 @@
import bitcoin.wallet
import requests
from pkg_resources import parse_version # noqa: F401
from requests.exceptions import ConnectionError, ReadTimeout, Timeout
from requests.exceptions import ChunkedEncodingError, ConnectionError, ReadTimeout, Timeout

Check warning

Code scanning / pylint

Redefining built-in 'ConnectionError'. Warning

Redefining built-in 'ConnectionError'.
logger.debug(
f"Could not connect to backend at `{util.clean_url_for_log(url)}`. (Try {tries})"
)
time.sleep(5)
except Exception as e:

Check warning

Code scanning / pylint

Catching too general exception Exception. Warning

Catching too general exception Exception.
@ouziel-slama ouziel-slama merged commit 0774b16 into develop Apr 27, 2024
17 checks passed
@ouziel-slama ouziel-slama deleted the catcherror branch April 27, 2024 09:58
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.

3 participants