Skip to content

Commit cbd830b

Browse files
gtamazianjmarshall
authored andcommitted
Fix invalid-type message for creating header from dictionary (PR #1334)
1 parent dbed309 commit cbd830b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pysam/libcalignmentfile.pyx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ cdef class AlignmentHeader(object):
302302
data = header_dict[record]
303303
if not isinstance(data, VALID_HEADER_TYPES[record]):
304304
raise ValueError(
305-
"invalid type for record %s: %s, expected %s".format(
305+
"invalid type for record {}: {}, expected {}".format(
306306
record, type(data), VALID_HEADER_TYPES[record]))
307307
if isinstance(data, Mapping):
308308
lines.append(build_header_line(data, record))

0 commit comments

Comments
 (0)