Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KatHellg committed Nov 13, 2024
1 parent 794a0b1 commit c83e928
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fedn/cli/model_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def list_models(ctx, protocol: str, host: str, port: str, token: str = None, ses
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint="models")


headers = {}

if n_max:
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_model(ctx, protocol: str, host: str, port: str, token: str = None, id: s
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint="models")


headers = {}


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/session_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ def get_session(ctx, protocol: str, host: str, port: str, token: str = None, id:
response = requests.get(url, headers=headers)
print_response(response, "session", id)
except requests.exceptions.ConnectionError:
click.echo(f"Error: Could not connect to {url}")
click.echo(f"Error: Could not connect to {url}")
2 changes: 1 addition & 1 deletion fedn/cli/status_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ def get_status(ctx, protocol: str, host: str, port: str, token: str = None, id:
response = requests.get(url, headers=headers)
print_response(response, "status", id)
except requests.exceptions.ConnectionError:
click.echo(f"Error: Could not connect to {url}")
click.echo(f"Error: Could not connect to {url}")

0 comments on commit c83e928

Please sign in to comment.