Commit 291f488a authored by Bruno Duyé's avatar Bruno Duyé
Browse files

Download - delete dataset dir on exception

parent 53a57e00
......@@ -41,6 +41,7 @@ Note: target_dir will be cleared.
import json
import logging
import os
import shutil
import sys
from docopt import docopt
......@@ -153,6 +154,8 @@ def main():
message = "Exception during downloading of {!r} series list (url: {!r}): {}".format(acronym, url, e)
errors_artifact.add_dataset_error(acronym, message)
# Delete dataset dir
assert len(dataset_series_json) == 2
# Download dataset series
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment