projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '17462-default-secondaryfiles' refs #17462
[arvados.git]
/
sdk
/
cwl
/
arvados_cwl
/
fsaccess.py
diff --git
a/sdk/cwl/arvados_cwl/fsaccess.py
b/sdk/cwl/arvados_cwl/fsaccess.py
index bc2c5e34d7b6c2737cc8bdcb541fc1daf394d9ae..16ec2b2f968e868104a4e0b18dad0a23654d4619 100644
(file)
--- a/
sdk/cwl/arvados_cwl/fsaccess.py
+++ b/
sdk/cwl/arvados_cwl/fsaccess.py
@@
-148,6
+148,11
@@
class CollectionFsAccess(cwltool.stdfsaccess.StdFsAccess):
return False
else:
raise
return False
else:
raise
+ except IOError as err:
+ if err.errno == errno.ENOENT:
+ return False
+ else:
+ raise
if collection is not None:
if rest:
return collection.exists(rest)
if collection is not None:
if rest:
return collection.exists(rest)
@@
-223,7
+228,7
@@
class CollectionFetcher(DefaultFetcher):
self.fsaccess = fs_access
self.num_retries = num_retries
self.fsaccess = fs_access
self.num_retries = num_retries
- def fetch_text(self, url):
+ def fetch_text(self, url
, content_types=None
):
if url.startswith("keep:"):
with self.fsaccess.open(url, "r", encoding="utf-8") as f:
return f.read()
if url.startswith("keep:"):
with self.fsaccess.open(url, "r", encoding="utf-8") as f:
return f.read()