Skip to content

catch better error for duplicate values #134

@jvanasco

Description

@jvanasco

If a schema has a scalar field (such as text or email) and multiple items are submitted, Formencode will raise a Python exception instead of catching the python exception and making the field invalid.

for example, if formencode is leveraged in a website and multiple values are submitted as GET query arguments such as http://example.com?foo=bar&foo=biz, formencode will raise AttributeError: 'list' object has no attribute 'strip'.

I suggest formencode catch these exceptions and mark the field as invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions