mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-01-05 14:33:10 +00:00
fix: exception type in tracker readiness check
This commit is contained in:
parent
83fc90343c
commit
dcbe2f3898
@ -1,7 +1,7 @@
|
||||
import socket
|
||||
|
||||
import requests
|
||||
from urllib3.exceptions import RequestError
|
||||
from requests.exceptions import ConnectionError
|
||||
from urllib3.util import Url
|
||||
|
||||
from benchmarks.core.experiments.experiments import ExperimentComponent
|
||||
@ -15,7 +15,7 @@ class Tracker(ExperimentComponent):
|
||||
try:
|
||||
requests.get(str(self.announce_url))
|
||||
return True
|
||||
except (ConnectionError, RequestError, socket.gaierror):
|
||||
except (ConnectionError, socket.gaierror):
|
||||
return False
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user