Skip to content

Commit

Permalink
Removed redundant newlines from AAD OAuth responses (#85)
Browse files Browse the repository at this point in the history
## Changes

Removed redundant newlines from AAD OAuth responses

## Tests
<!-- 
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->

- [x] `make test` run locally
- [ ] `make fmt` applied
- [ ] relevant integration tests applied
  • Loading branch information
nfx committed May 3, 2023
1 parent dd665d6 commit a5ace59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions databricks/sdk/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def retrieve_token(client_id,
err = resp.json()
code = err.get('errorCode', err.get('error', 'unknown'))
summary = err.get('errorSummary', err.get('error_description', 'unknown'))
summary = summary.replace("\r\n", ' ')
raise ValueError(f'{code}: {summary}')
raise ValueError(resp.content)
try:
Expand Down

0 comments on commit a5ace59

Please sign in to comment.