mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
fix wrong status key in adapter error reporting
This commit is contained in:
parent
7a0b8838d1
commit
c50d661d7d
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ async def index_uploaded_file(
|
||||||
indexed = await service.index(documents[0], connector_doc, llm)
|
indexed = await service.index(documents[0], connector_doc, llm)
|
||||||
|
|
||||||
if not DocumentStatus.is_state(indexed.status, DocumentStatus.READY):
|
if not DocumentStatus.is_state(indexed.status, DocumentStatus.READY):
|
||||||
raise RuntimeError(indexed.status.get("message", "Indexing failed"))
|
raise RuntimeError(indexed.status.get("reason", "Indexing failed"))
|
||||||
|
|
||||||
indexed.content_needs_reindexing = False
|
indexed.content_needs_reindexing = False
|
||||||
await session.commit()
|
await session.commit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue