diff --git a/databricks/sdk/oauth.py b/databricks/sdk/oauth.py index 38a7bcb6d..be6eadb52 100644 --- a/databricks/sdk/oauth.py +++ b/databricks/sdk/oauth.py @@ -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: