Skip to content

Commit 2f08881

Browse files
Fix error in logging
1 parent d27be5d commit 2f08881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hendrics/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def save_as_netcdf(vars, varnames, formats, fname):
382382
else:
383383
vnc[:] = v
384384
except Exception:
385-
log.error("Bad variable:", varnames[iv], formats[iv], dimspec, v)
385+
log.error(f"Bad variable: {varnames[iv]}, {formats[iv]}, {dimspec}, {v}")
386386
raise
387387
rootgrp.close()
388388

0 commit comments

Comments
 (0)