Skip to content

Commit 161eeed

Browse files
Ignore errors when decoding attributes in netCDF3.py (#565)
Co-authored-by: Martin Durant <martin.durant@alumni.utoronto.ca>
1 parent 35ac8f5 commit 161eeed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kerchunk/netCDF3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def translate(self):
216216
]
217217
arr.attrs.update(
218218
{
219-
k: v.decode() if isinstance(v, bytes) else str(v)
219+
k: v.decode(erros="ignore") if isinstance(v, bytes) else str(v)
220220
for k, v in var._attributes.items()
221221
if k not in ["_FillValue", "missing_value"]
222222
}

0 commit comments

Comments
 (0)