Skip to content

Commit 55f6d20

Browse files
Peter Amstutzmr-c
authored andcommitted
Handle tools with no name.
1 parent 8ce9971 commit 55f6d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/draft2tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def makePathMapper(self, reffiles, input_basedir, **kwargs):
120120
def job(self, joborder, input_basedir, output_callback, **kwargs):
121121
# type: (Dict[str,str], str, Callable[[Any, Any], Any], **Any) -> Generator[CommandLineJob, None, None]
122122

123-
jobname = uniquename(kwargs.get("name", shortname(self.tool["id"])))
123+
jobname = uniquename(kwargs.get("name", shortname(self.tool.get("id", "job"))))
124124

125125
if kwargs.get("cachedir"):
126126
cacheargs = kwargs.copy()

0 commit comments

Comments
 (0)