Skip to content

Commit

Permalink
SonarCloud fix for S:4830
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbird committed May 1, 2024
1 parent 5814477 commit f161e85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/apps/feed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _process_get_request(self, endpoint, params, resource_type, timeout=5.0):
headers=self._get_auth_headers(resource_type),
params=params if params else {},
timeout=timeout,
verify=False,
verify=True,
)
return self._get_response_data_or_raise(response)

Expand Down Expand Up @@ -478,7 +478,7 @@ def get_current_weather_list(self):
CURRENT_WEATHER, 'currentweather', CurrentWeatherSerializer,
{"format": "json", "limit": 500}
)

# Rest Stop
def get_rest_stop_list_feed(self, resource_type, resource_name, serializer_cls, params=None):
"""Get data feed for list of objects."""
Expand Down Expand Up @@ -508,7 +508,7 @@ def get_rest_stop_list_feed(self, resource_type, resource_name, serializer_cls,

except requests.RequestException as e:
return Response({"error": f"Error fetching data from rest stop API: {str(e)}"}, status=500)

try:
serializer.is_valid(raise_exception=True)
return json_objects
Expand Down

0 comments on commit f161e85

Please sign in to comment.