Skip to content

Commit

Permalink
Added changes from pr vericast#71
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuhho committed Oct 25, 2018
1 parent 9c1589b commit f6b3fe1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions conda_mirror/conda_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,13 @@ 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

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

0 comments on commit f6b3fe1

Please sign in to comment.