From fd6ddbf90a24dbb4459dba5f1867cd53186337cd Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Wed, 10 Sep 2025 13:38:23 +0200 Subject: [PATCH] refactor: Remove unused else statement --- cognee/tasks/ingestion/data_item_to_text_file.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cognee/tasks/ingestion/data_item_to_text_file.py b/cognee/tasks/ingestion/data_item_to_text_file.py index 5dbcfc93f..9fcafca57 100644 --- a/cognee/tasks/ingestion/data_item_to_text_file.py +++ b/cognee/tasks/ingestion/data_item_to_text_file.py @@ -75,9 +75,5 @@ async def data_item_to_text_file( else: raise IngestionError(message="Local files are not accepted.") - # data has unsupported URL scheme or format - else: - raise IngestionError(message=f"Unsupported data source format: {data_item_path}") - # data is not a supported type raise IngestionError(message=f"Data type not supported: {type(data_item_path)}")