Skip to content

Commit

Permalink
fix: Add json parse for empty query check
Browse files Browse the repository at this point in the history
  • Loading branch information
antidodo committed Apr 23, 2024
1 parent ca7d4d0 commit 5b0bbb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def _keycloak_client_exists(analysis_id: str, admin_token: str) -> bool:

response = requests.get(url_get_client, headers=headers)
response.raise_for_status()
print('Does client already exist:', bool(response))
print('Does client already exist:', bool(response.json()))

return bool(response)
return bool(response.json())


def _create_keycloak_client(admin_token: str, analysis_id: str) -> None:
Expand Down

0 comments on commit 5b0bbb0

Please sign in to comment.