Skip to content

Commit d8736f2

Browse files
committed
changes per code review
1 parent 7fe4ef1 commit d8736f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmdstanpy/utils/stancsv.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,8 @@ def scan_time(fd: TextIO, config_dict: Dict[str, Any], lineno: int) -> int:
431431
raise ValueError(f"Invalid time at line {lineno}: {content}")
432432
try:
433433
t = float(time_str)
434-
except ValueError:
435-
# pylint: disable=raise-missing-from
436-
raise ValueError(f"Invalid time value at line {lineno}: {content}")
434+
except ValueError as exc:
435+
raise ValueError(f"Invalid time value at line {lineno}: {content}") from exc
437436
time[key] = t
438437

439438
if not all(key in time for key in keys):

0 commit comments

Comments
 (0)