amoghrajesh commented on code in PR #69238:
URL: https://github.com/apache/airflow/pull/69238#discussion_r3526961692
##########
providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py:
##########
@@ -325,8 +325,11 @@ def _get_sp_token(self, resource: str) -> str:
self._is_oauth_token_valid(jsn)
self.oauth_tokens[resource] = jsn
break
- except RetryError:
- raise AirflowException(f"API requests to Databricks failed
{self.retry_limit} times. Giving up.")
+ except RetryError as e:
+ raise AirflowException(
+ f"API requests to Databricks failed {self.retry_limit} times "
+ f"(last error: {e.last_attempt.exception()}). Giving up."
+ )
Review Comment:
Good catch, added `from e` to all four occurrences of this pattern since
they're identical. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]