reports: attempt to reauthenticate on 401

This commit is contained in:
Mike A.
2024-07-11 21:02:34 +02:00
parent b631d0b8bd
commit 740bbf059c
2 changed files with 41 additions and 15 deletions

View File

@@ -5,6 +5,10 @@ class InvalidCredentialsError(Exception):
"""Raised when credentials are incorrect."""
class UnauthorizedError(Exception):
"""Raised when an authorization error occurs."""
class UnhandledProtocolError(RuntimeError):
"""
Raised when an unexpected error occurs while communicating with Apple servers.