Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions torrt/base_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ def pick_mirror(self, url: str) -> str:
silence_exceptions=True,
)

if response is None:
continue

if response.url.startswith(mirror_url):
if response and response.ok and response.url.startswith(mirror_url):
mirror_picked = mirror_domain
break

Expand Down