Skip to content

Commit

Permalink
Merge pull request #29 from CanDIG/daisieh/refresh-token
Browse files Browse the repository at this point in the history
return error instead of raising
  • Loading branch information
daisieh authored Aug 28, 2024
2 parents 9a8b4ec + f8c8cde commit b255e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_oauth_response(
if response.status_code == 200:
return response.json()
else:
raise CandigAuthError(f"Error obtaining access token: {response.text}")
return {"error": f"Error obtaining access token: {response.text}"}


def get_access_token(
Expand Down

0 comments on commit b255e78

Please sign in to comment.