Skip to content

Commit 8c832e6

Browse files
Douglas Slottamr-c
authored andcommitted
Fix for issue #743, less stringent exception handling. (#744)
1 parent c84b1e8 commit 8c832e6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cwltool/sandboxjs.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,8 @@ def new_js_proc(js_text, force_docker_pull=False):
7171

7272
required_node_version = check_js_threshold_version(n)
7373
break
74-
except subprocess.CalledProcessError:
74+
except (subprocess.CalledProcessError, OSError):
7575
pass
76-
except OSError as e:
77-
if e.errno == errno.ENOENT:
78-
pass
79-
else:
80-
raise
8176

8277
if nodejs is None or nodejs is not None and required_node_version is False:
8378
try:

0 commit comments

Comments
 (0)