Skip to content

Commit

Permalink
fix: exception type in tracker readiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
gmega committed Jan 12, 2025
1 parent 83fc903 commit dcbe2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/deluge/tracker.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,7 +15,7 @@ def is_ready(self) -> bool:
try:
requests.get(str(self.announce_url))
return True
except (ConnectionError, RequestError, socket.gaierror):
except (ConnectionError, socket.gaierror):
return False

def __str__(self) -> str:
Expand Down

0 comments on commit dcbe2f3

Please sign in to comment.