diff --git a/cognee/infrastructure/databases/vector/exceptions/exceptions.py b/cognee/infrastructure/databases/vector/exceptions/exceptions.py index b6a8237d8..48d9976e0 100644 --- a/cognee/infrastructure/databases/vector/exceptions/exceptions.py +++ b/cognee/infrastructure/databases/vector/exceptions/exceptions.py @@ -1,8 +1,8 @@ from fastapi import status -from cognee.exceptions import CriticalError +from cognee.exceptions import CogneeValidationError -class CollectionNotFoundError(CriticalError): +class CollectionNotFoundError(CogneeValidationError): """ Represents an error that occurs when a requested collection cannot be found. @@ -16,7 +16,5 @@ class CollectionNotFoundError(CriticalError): message, name: str = "CollectionNotFoundError", status_code: int = status.HTTP_422_UNPROCESSABLE_ENTITY, - log=True, - log_level="DEBUG", ): - super().__init__(message, name, status_code, log, log_level) + super().__init__(message, name, status_code)