Improve balldontlie query flow and dev container write stability
This commit is contained in:
@ -6,6 +6,17 @@ class ProviderTransientError(ProviderError):
|
||||
"""Temporary provider failure that can be retried."""
|
||||
|
||||
|
||||
class ProviderUnauthorizedError(ProviderError):
|
||||
"""Raised when provider credentials are valid format but not authorized for an endpoint."""
|
||||
|
||||
def __init__(self, *, provider: str, path: str, status_code: int, detail: str = ""):
|
||||
super().__init__(f"{provider} unauthorized status={status_code} path={path} detail={detail}")
|
||||
self.provider = provider
|
||||
self.path = path
|
||||
self.status_code = status_code
|
||||
self.detail = detail
|
||||
|
||||
|
||||
class ProviderRateLimitError(ProviderTransientError):
|
||||
"""Raised when provider rate limit is hit."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user