Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/manage/urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,17 +465,8 @@ def on_progress(_): pass
return _bits_urlretrieve(request)
except ImportError:
LOGGER.debug("BITS module unavailable - using fallback")
except NoInternetError as ex:
except NoInternetError:
request.on_progress(None)
try:
from _native import winhttp_isconnected
except ImportError:
pass
else:
if not winhttp_isconnected():
LOGGER.error("Failed to download. Please connect to the internet and try again.")
raise RuntimeError("Failed to download. Please connect to the internet and try again.") from ex

LOGGER.verbose("Failed to download using BITS, " +
"possibly due to no internet. Retrying with fallback method.")
except FileNotFoundError:
Expand Down