Skip to content

Commit

Permalink
Move pragma no cover statement out of error string (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Oct 27, 2023
1 parent 4f0bebc commit 3481be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion altamisa/isatab/parse_assay_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def build(self, line: List[str]) -> models.Process:
try:
date = datetime.strptime(line[self.date_header.col_no], "%Y-%m-%d").date()
except ValueError as e: # pragma: no cover
tpl = 'Invalid ISO8601 date # pragma: no cover "{}"'
tpl = 'Invalid ISO8601 date "{}"' # pragma: no cover
msg = tpl.format(line[self.date_header.col_no])
raise ParseIsatabException(msg) from e
else:
Expand Down

0 comments on commit 3481be2

Please sign in to comment.