File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -465,17 +465,8 @@ def on_progress(_): pass
465465 return _bits_urlretrieve (request )
466466 except ImportError :
467467 LOGGER .debug ("BITS module unavailable - using fallback" )
468- except NoInternetError as ex :
468+ except NoInternetError :
469469 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-
479470 LOGGER .verbose ("Failed to download using BITS, " +
480471 "possibly due to no internet. Retrying with fallback method." )
481472 except FileNotFoundError :
You can’t perform that action at this time.
0 commit comments