ragflow/api
Myth d38f995ba6
fix: Fix for Empty Reference Array Causing Errors (#1652)
### What problem does this PR solve?

This pull request addresses an issue where the reference is an empty
array ([]) in specific cases, leading to errors in the application. When
the reference is empty, the code attempts to call the get method on a
list, resulting in the following error message:
``` json
{"retcode": 500, "retmsg": "'list' object has no attribute 'get'", "data": {"answer": "**ERROR**: 'list' object has no attribute 'get'", "reference": []}}
```

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2024-07-25 14:14:42 +08:00
..
apps fix: Fix for Empty Reference Array Causing Errors (#1652) 2024-07-25 14:14:42 +08:00
db Add ParsertType Audio (#1637) 2024-07-22 19:17:30 +08:00
utils add password reset function by extending the Flask command (#1632) 2024-07-23 14:02:41 +08:00
__init__.py rename web_server to api (#29) 2024-01-17 09:43:27 +08:00
contants.py API: create dataset (#1106) 2024-06-11 11:16:37 +08:00
ragflow_server.py refine db connection (#1494) 2024-07-12 18:11:34 +08:00
settings.py Add ParsertType Audio (#1637) 2024-07-22 19:17:30 +08:00
versions.py add version (#807) 2024-05-16 16:17:48 +08:00