From 01cf15e7d140f0e9a2aebbbefb23a6f18871cafd Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Mon, 11 Nov 2024 17:33:28 -0300 Subject: [PATCH] add check --- open_notebook/graphs/source.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/open_notebook/graphs/source.py b/open_notebook/graphs/source.py index 14129e6..6582553 100644 --- a/open_notebook/graphs/source.py +++ b/open_notebook/graphs/source.py @@ -90,6 +90,8 @@ def trigger_transformations(state: SourceState, config: RunnableConfig) -> List[ async def transform_content(state: TransformationState) -> dict: source = state["source"] content = source.full_text + if not content: + return None transformation = state["transformation"] logger.debug(f"Applying transformation {transformation['name']}")