Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Marshmallow 3 DeprecationWarning: Field.fail is deprecated. Use raise self.make_error("by_name", ...) instead #32

@austinbutler

Description

@austinbutler

Simply changing super(EnumField, self).fail(key, **kwargs) to raise super(EnumField, self).make_error(key, **kwargs) seems to work for Marshmallow 3 on Python 3 but fails for Python 2, at least when running tox locally.

https://marshmallow.readthedocs.io/en/stable/upgrading.html#field-fail-is-deprecated-in-favor-of-field-make-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions