Download apps/oa_filing/services/exceptions.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/oa_filing/services/exceptions.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/oa_filing/services/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/oa_filing/services/exceptions.py
469 Bytes
| from __future__ import annotations | |
| from django.utils.translation import gettext_lazy as _ | |
| class OAFilingError(Exception): | |
| """OA立案基础异常""" | |
| def __init__(self, message: str = "") -> None: | |
| self.message: str = message | |
| super().__init__(self.message) | |
| class ScriptExecutionError(OAFilingError): | |
| """脚本执行失败""" | |
| def __init__(self, message: str = str(_("脚本执行失败"))) -> None: | |
| super().__init__(message) | |