diff --git a/torrent_parser.py b/torrent_parser.py index 4ab2c98..97777f5 100644 --- a/torrent_parser.py +++ b/torrent_parser.py @@ -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,