Skip to content

Commit

Permalink
fix user/pw logins
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmcreynolds committed Oct 2, 2023
1 parent 9644ea6 commit 85b28b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyscicat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,8 @@ def _log_in_via_auth_msad(base_url, username, password):
verify=True,
)
if not response.ok:
err = response.json()["error"]
logger.error(
f'Error retrieving token for user: {err["name"]}, {err["statusCode"]}: {err["message"]}'
f'Error retrieving token for user: {response.json()}'
)
raise ScicatLoginError(response.content)

Expand All @@ -834,6 +833,6 @@ def get_token(base_url, username, password):

err = response.json()["error"]
logger.error(
f' Failed log in: {err["name"]}, {err["statusCode"]}: {err["message"]}'
f' Failed log in: {response.json()}'
)
raise ScicatLoginError(response.content)

0 comments on commit 85b28b8

Please sign in to comment.