from typing import Any from fansifter_common.httpclient import HTTPClientError class GoogleClientError(HTTPClientError): name = "google_client_" @property def log_extra(self) -> dict[str, Any]: extra = super().log_extra if self.response: extra[f"{self.name}response_error_data"] = self.response.json() return extra