We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 567f4bc commit 68361e7Copy full SHA for 68361e7
1 file changed
src/manage/urlutils.py
@@ -465,17 +465,8 @@ def on_progress(_): pass
465
return _bits_urlretrieve(request)
466
except ImportError:
467
LOGGER.debug("BITS module unavailable - using fallback")
468
- except NoInternetError as ex:
+ except NoInternetError:
469
request.on_progress(None)
470
- try:
471
- from _native import winhttp_isconnected
472
- except ImportError:
473
- pass
474
- else:
475
- if not winhttp_isconnected():
476
- LOGGER.error("Failed to download. Please connect to the internet and try again.")
477
- raise RuntimeError("Failed to download. Please connect to the internet and try again.") from ex
478
-
479
LOGGER.verbose("Failed to download using BITS, " +
480
"possibly due to no internet. Retrying with fallback method.")
481
except FileNotFoundError:
0 commit comments