Skip to content

Commit

Permalink
fix: don't duplicate timeout arg to requests.get
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Apr 9, 2024
1 parent cfe100b commit b5cab16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superdesk/io/feeding_services/http_base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ def get_url(self, url=None, **kwargs):
# Let the provided ``kwargs`` override the feeding service's ``kwargs``
request_kwargs = self.get_request_kwargs()
request_kwargs.update(kwargs)
request_kwargs.setdefault("timeout", self.HTTP_TIMEOUT)

try:
response = requests.get(url, timeout=self.HTTP_TIMEOUT, **request_kwargs)
response = requests.get(url, **request_kwargs)
except requests.exceptions.Timeout as exception:
raise IngestApiError.apiTimeoutError(exception, self.provider)
except requests.exceptions.ConnectionError as exception:
Expand Down

0 comments on commit b5cab16

Please sign in to comment.