ragflow/api
Can Wang 779932dcb0
Fix: graphrag, raptor can be null for api created kb issue (#8743)
### What problem does this PR solve?

When knowledgebase/dataset created by API, graphrag and raptor can be
null, and will trigger NoneType error when reach to this code, causing
chunking task not able to finish.

![image](https://github.com/user-attachments/assets/998a63e9-611b-4301-8808-24839a05be8a)

Proposed solution will result in None and pass the condition check
without error.

![image](https://github.com/user-attachments/assets/184374fb-e06a-46e6-b8ac-d66a3fd93b59)


### Type of change

-   Bug Fix (non-breaking change which fixes an issue)
2025-07-09 17:12:42 +08:00
..
apps Feat: add advanced document filter (#8723) 2025-07-09 09:33:11 +08:00
db Fix: graphrag, raptor can be null for api created kb issue (#8743) 2025-07-09 17:12:42 +08:00
utils Trivals. (#8597) 2025-07-01 14:05:18 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
constants.py Refa: Implement centralized file name length limit using FILE_NAME_LEN_LIMIT constant (#8318) 2025-06-17 18:01:30 +08:00
ragflow_server.py Refa: change mcp_client module to rag/utils/conn (#8578) 2025-07-01 09:29:19 +08:00
settings.py Fix: anthropic llm issue. (#8633) 2025-07-02 18:37:34 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00