Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Jan 31, 2025
1 parent 91faedf commit e88d28c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mars-cli/mars_lib/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def submit_to_biosamples(
).model_dump(by_alias=True, exclude_none=True),
)

if result.status_code == 200 and not result.json().get('errors', []):
if result.status_code == 200 and not result.json().get("errors", []):
return result

body = (
Expand All @@ -243,7 +243,6 @@ def submit_to_biosamples(
)



def upload_to_metabolights(
file_paths: list[str],
isa_json: IsaJson,
Expand Down Expand Up @@ -283,7 +282,7 @@ def upload_to_metabolights(
timeout=120,
)
submission_response.raise_for_status()
if submission_response.json().get('errors', []):
if submission_response.json().get("errors", []):
raise requests.HTTPError(
f"Request towards MetaboLights failed!\nRequest:\nMethod:{submission_response.request.method}\nStatus:{submission_response.status_code}\nURL:{submission_response.request.url}\nHeaders:{submission_response.request.headers}\nBody:{submission_response.request.body}"
)
Expand Down Expand Up @@ -374,7 +373,7 @@ def submit_to_ena(
).model_dump(by_alias=True, exclude_none=True),
)

if result.status_code == 200 and not result.json().get('errors', []):
if result.status_code == 200 and not result.json().get("errors", []):
return result

body = (
Expand Down

0 comments on commit e88d28c

Please sign in to comment.