Fix Issue #4
parent
d572794ac6
commit
c1212c0203
|
@ -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