Skip to content

fix: resolve AttributeError when appending to existing field#327

Open
echovx wants to merge 1 commit intofireform-core:mainfrom
echovx:fix/issue-325
Open

fix: resolve AttributeError when appending to existing field#327
echovx wants to merge 1 commit intofireform-core:mainfrom
echovx:fix/issue-325

Conversation

@echovx
Copy link

@echovx echovx commented Mar 23, 2026

SUMMARY

Fixed AttributeError: 'str' object has no attribute 'append' in src/llm.py.

ISSUE

The original code incorrectly assumed existing fields were always lists, whereas the first extracted value is a string.

SOLUTION

This PR implements a type check using isinstance to handle the dynamic conversion from a single string to a list.

Fixes #325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] AttributeError on appending to an existing JSON field

1 participant