diff --git a/CHANGELOG.md b/CHANGELOG.md index 39ee25f..65cc205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### Bugfix - Scan stalls when an exception occures #34 +- Making sure all trackers are bytes, fixing #48 ## [1.2.2] - 2022-08-06 diff --git a/src/autotorrent/utils.py b/src/autotorrent/utils.py index be426c5..620973c 100644 --- a/src/autotorrent/utils.py +++ b/src/autotorrent/utils.py @@ -618,6 +618,8 @@ def parse_torrent( if not isinstance(tracker_group, list): tracker_group = [tracker_group] for tracker in tracker_group: + if not isinstance(tracker, bytes): + continue tracker = tracker.decode() if tracker not in trackers: trackers.append(trackers)