Skip to content

Commit 9f24664

Browse files
committed
additional error handling for utf8 decoding
1 parent 03eb68d commit 9f24664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/binaryview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def __len__(self):
504504

505505
@property
506506
def value(self) -> str:
507-
return self._view.read(self._start, self._length).decode(self._decodings[self._type])
507+
return self._view.read(self._start, self._length).decode(self._decodings[self._type], errors='replace')
508508

509509
@property
510510
def raw(self) -> bytes:

0 commit comments

Comments
 (0)