Spaces:
Paused
Paused
Download sabnzbdapi/exception.py from prad9036temp/leech: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/prad9036temp/leech/resolve/main/sabnzbdapi/exception.py
- Command line
-
hf download hf://spaces/prad9036temp/leech/sabnzbdapi/exception.py
-
curl -L -o exception.py https://huggingface.co/spaces/prad9036temp/leech/resolve/main/sabnzbdapi/exception.py
527 Bytes
| from httpx import RequestError, DecodingError | |
| class APIError(Exception): | |
| """Base error for all exceptions from this Client.""" | |
| class APIConnectionError(RequestError, APIError): | |
| """Base class for all communications errors including HTTP errors.""" | |
| class LoginFailed(DecodingError, APIConnectionError): | |
| """This can technically be raised with any request since log in may be attempted for | |
| any request and could fail.""" | |
| class NotLoggedIn(APIConnectionError): | |
| """Raised when login is not successful.""" | |