You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from d2lib.files import D2SFile
D2SFile('Ozzaki.d2s')
Traceback (most recent call last):
File "", line 1, in
File "/home/john/.local/lib/python3.8/site-packages/d2lib/files.py",
line 226, in init self._parse_header()
File "/home/john/.local/lib/python3.8/site-packages/d2lib/files.py",
line 318, in _parse_header self.char_name =
self._reader.read(16).rstrip(b'\x00').decode('ASCII')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position
12: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
This is not a problem. The character name consists of 16 bytes that are encoded as ASCII. Anyway it is necessary to handle this case and throw D2SFileParseError as other cases do.
Python 3.8.5 (default, Aug 29 2020, 03:09:06)
The text was updated successfully, but these errors were encountered: