diff --git a/cognee-frontend/src/ui/elements/Notebook/Notebook.tsx b/cognee-frontend/src/ui/elements/Notebook/Notebook.tsx index 1401f95b4..808e6846b 100644 --- a/cognee-frontend/src/ui/elements/Notebook/Notebook.tsx +++ b/cognee-frontend/src/ui/elements/Notebook/Notebook.tsx @@ -193,7 +193,7 @@ export default function Notebook({ notebook, updateNotebook, runCell }: Notebook output: )} - {cell.error && ( + {!!cell.error?.length && (
error: {cell.error}
diff --git a/cognee/tasks/ingestion/save_data_item_to_storage.py b/cognee/tasks/ingestion/save_data_item_to_storage.py index 4eacf4eff..34f70e917 100644 --- a/cognee/tasks/ingestion/save_data_item_to_storage.py +++ b/cognee/tasks/ingestion/save_data_item_to_storage.py @@ -41,6 +41,7 @@ async def save_data_item_to_storage(data_item: Union[BinaryIO, str, Any]) -> str abs_path.is_file() except (OSError, ValueError): # In case file path is too long it's most likely not a relative path + abs_path = data_item logger.debug(f"Data item was too long to be a possible file path: {abs_path}") abs_path = Path("") diff --git a/pyproject.toml b/pyproject.toml index 2722e8944..0ffea217d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "cognee" -version = "0.3.4.dev2" +version = "0.3.4.dev3" description = "Cognee - is a library for enriching LLM context with a semantic layer for better understanding and reasoning." authors = [ { name = "Vasilije Markovic" }, diff --git a/uv.lock b/uv.lock index 6a187e0a4..e5125ed2b 100644 --- a/uv.lock +++ b/uv.lock @@ -811,7 +811,7 @@ wheels = [ [[package]] name = "cognee" -version = "0.3.4.dev2" +version = "0.3.4.dev3" source = { editable = "." } dependencies = [ { name = "aiofiles" },