dev
Yasuo 2018-06-21 13:56:46 +00:00 committed by GitHub
parent d572794ac6
commit c1212c0203
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,