Exceptions

exception instaloader.exceptions.InstaloaderException

Base exception for this script.

Note:

This exception should not be raised directly.

exception instaloader.exceptions.ConnectionException

Bases: InstaloaderException

exception instaloader.QueryReturnedBadRequestException

Bases: InstaloaderException

exception instaloader.QueryReturnedForbiddenException

Bases: InstaloaderException

exception instaloader.ProfileNotExistsException

Bases: InstaloaderException

exception instaloader.ProfileHasNoPicsException

Bases: InstaloaderException

Deprecated since version 4.2.2: Not raised anymore.

exception instaloader.PrivateProfileNotFollowedException

Bases: InstaloaderException

exception instaloader.LoginRequiredException

Bases: InstaloaderException

exception instaloader.LoginException

Bases: InstaloaderException

Added in version 4.12.

exception instaloader.TwoFactorAuthRequiredException

Bases: LoginException

Added in version 4.2.

Changed in version 4.12: Inherits LoginException

exception instaloader.InvalidArgumentException

Bases: InstaloaderException

exception instaloader.BadResponseException

Bases: InstaloaderException

exception instaloader.BadCredentialsException

Bases: LoginException

Changed in version 4.12: Inherits LoginException

exception instaloader.PostChangedException

Bases: InstaloaderException

Added in version 4.2.2.

exception instaloader.QueryReturnedNotFoundException

Bases: ConnectionException

Changed in version 4.3: QueryReturnedNotFoundException now inherits ConnectionException to retry on 404 errors.

exception instaloader.TooManyRequestsException

Bases: ConnectionException

exception instaloader.AbortDownloadException

Bases: Exception

Exception that is not catched in the error catchers inside the download loop and so aborts the download loop.

This exception is not a subclass of InstaloaderException.

Added in version 4.7.

Next Section

Advanced Instaloader Examples