# HG changeset patch # User Catherine Wise # Date 1431914825 -36000 # Node ID e4c13ce69e25763fb182ecea98e7ecc33d113a19 # Parent 0a6dd98baf5384d962c175dda1bd7174ec867970 More helpful output. diff -r 0a6dd98baf53 -r e4c13ce69e25 TrustStoreGalaxyBrowse.py --- a/TrustStoreGalaxyBrowse.py Mon May 18 11:49:32 2015 +1000 +++ b/TrustStoreGalaxyBrowse.py Mon May 18 12:07:05 2015 +1000 @@ -109,7 +109,6 @@ all_params = None with open(properties_file, 'r') as file_: settings = file_.read() - print(settings) all_params = json.loads(settings) json_params = all_params.get("param_dict") metadata_path = all_params["job_config"]["TOOL_PROVIDED_JOB_METADATA_FILE"] @@ -166,9 +165,11 @@ for path in paths: locations = utils.Navigation.files_at_path(root, path) for location in locations: - if not locations: + if not location: print("Path not found: " + path) continue + else: + print("Downloading file... " + location.name) filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name) extension = os.path.splitext(filename)[1] name = construct_multi_filename(hda_id, filename, extension)