Spaces:
Sleeping
Sleeping
| 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" | |