Skip to content

Commit 518b5c1

Browse files
committed
fix exception formatting
1 parent 32b9fcd commit 518b5c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def collect_output_ports(self, ports, builder, outdir, compute_checksum=True):
407407
% shortname(port["id"]), exc_info=True)
408408
raise WorkflowException(
409409
u"Error collecting output for parameter '%s':\n%s"
410-
% (shortname(port["id"]), indent(u(e))))
410+
% (shortname(port["id"]), indent(u(str(e)))))
411411

412412
if ret:
413413
adjustFileObjs(ret,

cwltool/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def next_seg(remain, obj): # type: (Text, Any) -> Any
127127
try:
128128
key = int(m.group(0)[1:-1])
129129
except ValueError as v:
130-
raise WorkflowException(u(v))
130+
raise WorkflowException(u(str(v)))
131131
if not isinstance(obj, list):
132132
raise WorkflowException(" is a %s, cannot index on int '%s'" % (type(obj).__name__, key))
133133
if key >= len(obj):

0 commit comments

Comments
 (0)