findmy.errors#

Exception classes.

Exceptions#

InvalidCredentialsError

Raised when credentials are incorrect.

UnauthorizedError

Raised when an authorization error occurs.

UnhandledProtocolError

Raised when an unexpected error occurs while communicating with Apple servers.

EmptyResponseError

Raised when Apple servers return an empty response when querying location reports.

InvalidStateError

Raised when a method is used that is in conflict with the internal account state.

Module Contents#

exception findmy.errors.InvalidCredentialsError#

Bases: Exception

Inheritance diagram of findmy.errors.InvalidCredentialsError

Raised when credentials are incorrect.

exception findmy.errors.UnauthorizedError#

Bases: Exception

Inheritance diagram of findmy.errors.UnauthorizedError

Raised when an authorization error occurs.

exception findmy.errors.UnhandledProtocolError#

Bases: RuntimeError

Inheritance diagram of findmy.errors.UnhandledProtocolError

Raised when an unexpected error occurs while communicating with Apple servers.

This is almost always a bug, so please report it.

exception findmy.errors.EmptyResponseError#

Bases: RuntimeError

Inheritance diagram of findmy.errors.EmptyResponseError

Raised when Apple servers return an empty response when querying location reports.

This is a bug on Apple’s side. More info: malmeloo/FindMy.py#185

exception findmy.errors.InvalidStateError#

Bases: RuntimeError

Inheritance diagram of findmy.errors.InvalidStateError

Raised when a method is used that is in conflict with the internal account state.

For example: calling BaseAppleAccount.login() while already logged in.