commit
94b8f1eee0
|
@ -233,7 +233,7 @@ class TorrentFileParser(object):
|
||||||
if encoding == 'auto':
|
if encoding == 'auto':
|
||||||
encoding = detect(raw)
|
encoding = detect(raw)
|
||||||
try:
|
try:
|
||||||
string = raw.decode(encoding)
|
string = raw.decode(encoding, "ignore")
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
raise InvalidTorrentDataException(
|
raise InvalidTorrentDataException(
|
||||||
self._pos - length + e.start,
|
self._pos - length + e.start,
|
||||||
|
|
Loading…
Reference in New Issue