Merge pull request #5 from yasuotakei/patch-1

Fix Issue #4
This commit is contained in:
七秒不觉梦 authored and GitHub committed 2018-06-22 21:21:57 +08:00
commit 94b8f1eee0
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,