Skip to content

Commit d2929d7

Browse files
committed
Fix error in fstring
1 parent 72c7087 commit d2929d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/climate_data/generate/historical_daily.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def validate_output(ds: xr.Dataset, year: str) -> None: # noqa: C901
149149
error_msg_parts.append("Unexpected NaNs")
150150

151151
if error_msg_parts:
152-
msg = f"{len(error_msg_parts)} errors in output for {year}:\n {'\n'.join(error_msg_parts)}"
152+
errors = "\n".join(error_msg_parts)
153+
msg = f"{len(error_msg_parts)} errors in output for {year}:" + "\n" + errors
153154
raise ValueError(msg)
154155

155156

0 commit comments

Comments
 (0)