Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/SK-1241
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Dec 3, 2024
2 parents 26e75b5 + 1940e14 commit fd95774
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fedn/network/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,9 @@ def start_session(
headers=self.headers,
)

if id is None:
id = response.json()["session_id"]

if response.status_code == 201:
if id is None:
id = response.json()["session_id"]
response = requests.post(
self._get_url_api_v1("sessions/start"),
json={
Expand Down

0 comments on commit fd95774

Please sign in to comment.