Exceptions#
- exception UnsupportedQbittorrentVersion#
Bases:
APIError
Connected qBittorrent is not fully supported by this Client.
- exception TorrentFileNotFoundError#
Bases:
TorrentFileError
Specified torrent file does not appear to exist.
- exception TorrentFilePermissionError#
Bases:
TorrentFileError
Permission was denied to read the specified torrent file.
- exception APIConnectionError(*args, **kwargs)#
Bases:
RequestException
,APIError
Base class for all communications errors including HTTP errors.
- exception LoginFailed(*args, **kwargs)#
Bases:
APIConnectionError
This can technically be raised with any request since log in may be attempted for any request and could fail.
- exception HTTPError(*args, **kwargs)#
Bases:
HTTPError
,APIConnectionError
Base error for all HTTP errors.
All errors following a successful connection to qBittorrent are returned as HTTP statuses.
- exception HTTP400Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 400 Status.
- exception HTTP401Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 401 Status.
- exception HTTP403Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 403 Status.
- exception HTTP404Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 404 Status.
- exception HTTP405Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 405 Status.
- exception HTTP409Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 409 Status.
- exception HTTP415Error(*args, **kwargs)#
Bases:
HTTP4XXError
HTTP 415 Status.
- exception HTTP500Error(*args, **kwargs)#
Bases:
HTTP5XXError
HTTP 500 Status.
- exception MissingRequiredParameters400Error(*args, **kwargs)#
Bases:
HTTP400Error
Endpoint call is missing one or more required parameters.
- exception InvalidRequest400Error(*args, **kwargs)#
Bases:
HTTP400Error
One or more endpoint arguments are malformed.
- exception Unauthorized401Error(*args, **kwargs)#
Bases:
HTTP401Error
Primarily reserved for XSS and host header issues.
- exception Forbidden403Error(*args, **kwargs)#
Bases:
HTTP403Error
Not logged in, IP has been banned, or calling an API method that isn’t public.
- exception NotFound404Error(*args, **kwargs)#
Bases:
HTTP404Error
This should mean qBittorrent couldn’t find a torrent for the torrent hash.
- exception MethodNotAllowed405Error(*args, **kwargs)#
Bases:
HTTP405Error
HTTP method is not supported for the API endpoint.
- exception Conflict409Error(*args, **kwargs)#
Bases:
HTTP409Error
Returned if arguments don’t make sense specific to the endpoint.
- exception UnsupportedMediaType415Error(*args, **kwargs)#
Bases:
HTTP415Error
torrents/add
endpoint will return this for invalid URL(s) or files.
- exception InternalServerError500Error(*args, **kwargs)#
Bases:
HTTP500Error
Returned if qBittorrent errors internally while processing the request.