From c1212c0203302847107496748f77ea8131d66c07 Mon Sep 17 00:00:00 2001 From: Yasuo <40465782+yasuotakei@users.noreply.github.com> Date: Thu, 21 Jun 2018 13:56:46 +0000 Subject: [PATCH] Fix Issue #4 --- torrent_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,