mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 19:40:50 +00:00
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:
|
||||
source = state["source"]
|
||||
content = source.full_text
|
||||
if not content:
|
||||
return None
|
||||
transformation = state["transformation"]
|
||||
|
||||
logger.debug(f"Applying transformation {transformation['name']}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue