Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
query_id=query_ids_str,
second_query_id=second_query_id,
resource=resource,
data=data,
options=options)
def notify_retry(exc_type, exc_val, exc_tb):
if self.on_retry:
self.on_retry(self, exc_type, exc_val, exc_tb, dict(
method=method, resource=resource, query_id=query_id,
category=self._category, subcategory=subcategory,
second_query_id=second_query_id, data=data,
options=options
))
response = retry(
exec_retry, self._cfg.max_attempts, self._cfg.min_retry_secs, self._cfg.max_retry_secs,
login_handler=self._client_login_handler if self.login_handler else None,
on_retry=notify_retry, dont_retry=dont_retry)
if self.auto_refresh:
self._refresh_token_client()
return DataResponse(response)