Spaces:
Runtime error
Runtime error
Download app/rules/errors.py from suvradeepp/reno-scheduling-engine: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/suvradeepp/reno-scheduling-engine/resolve/main/app/rules/errors.py
- Command line
-
hf download hf://spaces/suvradeepp/reno-scheduling-engine/app/rules/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/suvradeepp/reno-scheduling-engine/resolve/main/app/rules/errors.py
436 Bytes
| from app.errors import DomainError | |
| class NoTemplateError(DomainError): | |
| def __init__(self, category_id: int, procurement_type: str): | |
| self.category_id = category_id | |
| self.procurement_type = procurement_type | |
| super().__init__( | |
| f"No active activity_templates for category={category_id}, " | |
| f"procurement_type={procurement_type}" | |
| ) | |
| self.name = "NoTemplateError" | |