Merge pull request #5 from yasuotakei/patch-1

Fix Issue #4
dev
七秒不觉梦 2018-06-22 21:21:57 +08:00 committed by GitHub
commit 94b8f1eee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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,