Skip to content

Commit c4a31a4

Browse files
committed
Further attempt to satisfy warning cateogry checker.
1 parent c8a27df commit c4a31a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iris/fileformats/netcdf/_bytecoding_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def _get_encoding(self, writing=False) -> str | None:
251251
f"_Encoding = {result!r}."
252252
)
253253
warntype = IrisCfSaveWarning if writing else IrisCfLoadWarning
254-
warnings.warn(msg, warntype)
254+
warnings.warn(msg, category=warntype)
255255
# Proceed as if there is no specified encoding
256256
result = None
257257
return result

0 commit comments

Comments
 (0)