mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-10-07 14:28:16 +03:00
Fix weird filename edgecase with some ifs file.
This commit is contained in:
@@ -422,7 +422,7 @@ class BinaryDecoder:
|
||||
# Need to convert this from encoding to standard string.
|
||||
# Also, need to lob off the trailing null.
|
||||
try:
|
||||
val = val[:-1].decode(self.encoding)
|
||||
val = val[:-1].decode(self.encoding, 'replace')
|
||||
except UnicodeDecodeError:
|
||||
# Nothing we can do here
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user