Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

catch better error for duplicate values #134

Copy link
Copy link
@jvanasco

Description

@jvanasco
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.