add check
This commit is contained in:
parent
00f070a644
commit
01cf15e7d1
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ def trigger_transformations(state: SourceState, config: RunnableConfig) -> List[
|
||||||
async def transform_content(state: TransformationState) -> dict:
|
async def transform_content(state: TransformationState) -> dict:
|
||||||
source = state["source"]
|
source = state["source"]
|
||||||
content = source.full_text
|
content = source.full_text
|
||||||
|
if not content:
|
||||||
|
return None
|
||||||
transformation = state["transformation"]
|
transformation = state["transformation"]
|
||||||
|
|
||||||
logger.debug(f"Applying transformation {transformation['name']}")
|
logger.debug(f"Applying transformation {transformation['name']}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue