Skip to content

Commit

Permalink
curl: fixed - set number of retries even if settings is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Jul 4, 2024
1 parent 869d21e commit 1cf1439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypath/share/curl.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def __init__(
self.connect_timeout = settings.get('curl_connect_timeout')
self.ignore_content_length = ignore_content_length
self.override_post = override_post
self.retries = max(retries or settings.get('curl_retries'), 1)
self.retries = retries or settings.get('curl_retries') or 3
self.req_headers = req_headers
self._req_headers_list()
self.post = post
Expand Down

0 comments on commit 1cf1439

Please sign in to comment.