X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3a88a5d8753593be89373c5b124fc5a8398457a0..91f1e7009305109db0bfb6405adbd11357745bfc:/sdk/cwl/arvados_cwl/__init__.py?ds=inline diff --git a/sdk/cwl/arvados_cwl/__init__.py b/sdk/cwl/arvados_cwl/__init__.py index 1d2fa291ec..ed784f56c5 100644 --- a/sdk/cwl/arvados_cwl/__init__.py +++ b/sdk/cwl/arvados_cwl/__init__.py @@ -247,10 +247,13 @@ class ArvCwlRunner(object): raise Exception("Output source is not in keep or a literal") sp = k.split("/") srccollection = sp[0][5:] - reader = self.collection_cache.get(srccollection) try: + reader = self.collection_cache.get(srccollection) srcpath = "/".join(sp[1:]) if len(sp) > 1 else "." final.copy(srcpath, v.target, source_collection=reader, overwrite=False) + except arvados.errors.ArgumentError as e: + logger.error("Creating CollectionReader for '%s' '%s': %s", k, v, e) + raise except IOError as e: logger.warn("While preparing output collection: %s", e)