diff --git a/torrt/base_tracker.py b/torrt/base_tracker.py index f429dfa..e3145db 100644 --- a/torrt/base_tracker.py +++ b/torrt/base_tracker.py @@ -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