We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a619238 commit eff8648Copy full SHA for eff8648
kerchunk/hdf.py
@@ -186,7 +186,7 @@ def _transfer_attrs(
186
187
# Fix some attribute values to avoid JSON encoding exceptions...
188
if isinstance(v, bytes):
189
- v = v.decode("utf-8") or " "
+ v = v.decode("utf-8", errors="replace") or " "
190
elif isinstance(v, (np.ndarray, np.number, np.bool_)):
191
if v.dtype.kind == "S":
192
v = v.astype(str)
0 commit comments