Skip to content

Commit 4b806a0

Browse files
committed
Ensure strings are registered, not looped over
1 parent 328bf0f commit 4b806a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/provenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def declare_artefact(self, value):
544544
return self.document.entity(uuid.uuid4().urn,
545545
{ provM.PROV_VALUE: value })
546546

547-
elif isinstance(value, Text):
547+
elif isinstance(value, (Text, str)):
548548
# Save as string in UTF-8
549549
byte_s = io.BytesIO(str(value).encode(ENCODING))
550550
data_file = self.research_object.add_data_file(byte_s)

0 commit comments

Comments
 (0)