1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 21:58:41 +02:00

Merge pull request #1244 from dmach/fix-urllib3-retry

connection: Mute the "Converted retries value" debug message
This commit is contained in:
2023-02-01 10:49:38 +01:00
committed by GitHub

View File

@@ -217,7 +217,7 @@ def http_request(method: str, url: str, headers=None, data=None, file=None):
pool = CONNECTION_POOLS.get(apiurl, None)
if not pool:
pool_kwargs = {}
pool_kwargs["retries"] = int(conf.config["http_retries"])
pool_kwargs["retries"] = urllib3.Retry(total=int(conf.config["http_retries"]))
if purl.scheme == "https":
ssl_context = oscssl.create_ssl_context()