We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b817a commit ae048d5Copy full SHA for ae048d5
cwltool/builder.py
@@ -50,8 +50,12 @@ def content_limit_respected_read(f): # type: (IO) -> Text
50
51
52
def substitute(value, replace): # type: (Text, Text) -> Text
53
- if replace[0] == "^":
54
- return substitute(value[0:value.rindex('.')], replace[1:])
+ if replace.startswith("^"):
+ try:
55
+ return substitute(value[0:value.rindex('.')], replace[1:])
56
+ except ValueError:
57
+ # No extension to remove
58
+ return value + replace.lstrip("^")
59
return value + replace
60
61
def formatSubclassOf(fmt, cls, ontology, visited):
0 commit comments