Skip to content

Commit

Permalink
Fixing #48
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDoee committed Feb 16, 2024
1 parent f2295a4 commit 7d93bda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/autotorrent/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d93bda

Please sign in to comment.