refactor: Remove unused else statement
This commit is contained in:
parent
e975cde3e7
commit
fd6ddbf90a
1 changed files with 0 additions and 4 deletions
|
|
@ -75,9 +75,5 @@ async def data_item_to_text_file(
|
||||||
else:
|
else:
|
||||||
raise IngestionError(message="Local files are not accepted.")
|
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
|
# data is not a supported type
|
||||||
raise IngestionError(message=f"Data type not supported: {type(data_item_path)}")
|
raise IngestionError(message=f"Data type not supported: {type(data_item_path)}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue