Skip to content

Commit

Permalink
chore: newline
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Feb 26, 2025
1 parent 94d5aeb commit d344e63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eox_core/api/data/data_collector/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def post_process_query_results(data):
if len(data) == 1:
return post_process_query_results(data[0])
return [post_process_query_results(item) for item in data]
elif isinstance(data, datetime):
if isinstance(data, datetime):
return data.isoformat()
return data

Expand Down Expand Up @@ -92,7 +92,7 @@ def post_data_to_api(api_url, report_data, token_generation_url, current_host):
try:
response = requests.post(api_url, json=payload, headers=headers, timeout=10)
response.raise_for_status()
except requests.Timeout:
raise requests.Timeout("The request to Shipyard API timed out.")
except requests.Timeout as exc:
raise requests.Timeout("The request to Shipyard API timed out.") from exc
except requests.RequestException as e:
raise requests.RequestException(f"Failed to post data to Shipyard API: {e}")

0 comments on commit d344e63

Please sign in to comment.