Skip to content

UnboundLocalError: cannot access local variable 'field_key' where it is not associated with a valueΒ #638

@johannesloibl

Description

@johannesloibl

Hey there!

I think PR #608 uncovered an error (@d15ky FYI).
If the for loop does not find a field_key, the variable is not defined:

Image

Using pydantic-settings==2.10.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions