This commit is contained in:
Yasuo authored and GitHub committed 2018-06-21 13:56:46 +00:00
1 parent d572794ac6
commit c1212c0203
1 file changed
+1 -1
+1 -1
View File
@@ -233,7 +233,7 @@ class TorrentFileParser(object):
if encoding == 'auto':
encoding = detect(raw)
try:
string = raw.decode(encoding)
string = raw.decode(encoding, "ignore")
except UnicodeDecodeError as e:
raise InvalidTorrentDataException(
self._pos - length + e.start,