Skip to content

Commit 54a47c9

Browse files
committed
add raise_for_status
1 parent 4a1a512 commit 54a47c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/posit/connect/external/databricks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def __call__(self) -> Dict[str, str]:
9797
"scope": "all-apis",
9898
},
9999
)
100+
response.raise_for_status()
101+
100102
credentials = Credentials(**response.json())
101103
return _new_bearer_authorization_header(credentials)
102104

0 commit comments

Comments
 (0)