Created
April 16, 2019 01:09
-
-
Save busybus/61cecb4cfc875ab8835a0a58f7fa9e5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MASTER: | |
def download_all(): | |
for region in PARAM['regions']: | |
try: | |
logging.info("Downloading region '{}'...".format(region)) | |
download(region) | |
logging.info("Download OK!") | |
except urllib.error.URLError: | |
logging.exception("Download failed (no connection or wrong URL?).") | |
except: | |
logging.exception("Download failed.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment