Skip to content

Commit

Permalink
add raise_for_status
Browse files Browse the repository at this point in the history
  • Loading branch information
zackverham committed Dec 5, 2024
1 parent 4a1a512 commit 54a47c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/posit/connect/external/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def __call__(self) -> Dict[str, str]:
"scope": "all-apis",
},
)
response.raise_for_status()

credentials = Credentials(**response.json())
return _new_bearer_authorization_header(credentials)

Expand Down

0 comments on commit 54a47c9

Please sign in to comment.