Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda_mirror.py: log download errors instead of breaking and clearing… #71

Merged
merged 2 commits into from Oct 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions conda_mirror/conda_mirror.py
Expand Up @@ -682,8 +682,12 @@ def main(upstream_channel, target_directory, temp_directory, platform,
channel=channel,
platform=platform,
file_name=package_name)
_download(url, download_dir)
summary['downloaded'].add((url, download_dir))
try:
_download(url, download_dir)
summary['downloaded'].add((url, download_dir))
except Exception as ex:
logger.exception('Unexpected error %s: Aborting download', ex)
break
parente marked this conversation as resolved.
Show resolved Hide resolved

# validate all packages in the download directory
validation_results = _validate_packages(packages, download_dir,
Expand Down