Skip to content

Instantly share code, notes, and snippets.

@busybus
Created April 16, 2019 01:09
Show Gist options
  • Save busybus/61cecb4cfc875ab8835a0a58f7fa9e5f to your computer and use it in GitHub Desktop.
Save busybus/61cecb4cfc875ab8835a0a58f7fa9e5f to your computer and use it in GitHub Desktop.
# 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