Spaces:
Running
Running
Download backend/errors.py from OpenTogether/community-playlist: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/OpenTogether/community-playlist/resolve/main/backend/errors.py
- Command line
-
hf download hf://spaces/OpenTogether/community-playlist/backend/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/OpenTogether/community-playlist/resolve/main/backend/errors.py
240 Bytes
| class AppError(Exception): | |
| def __init__(self, status: int, code: str, message: str, fields=None): | |
| self.status, self.code, self.message = status, code, message | |
| self.fields = fields or {} | |
| super().__init__(message) | |