Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using min/max and passing strings to Decimal fields #179

Open
jackqu7 opened this issue Jun 17, 2019 · 0 comments
Open

Crash when using min/max and passing strings to Decimal fields #179

jackqu7 opened this issue Jun 17, 2019 · 0 comments

Comments

@jackqu7
Copy link
Collaborator

jackqu7 commented Jun 17, 2019

If you have min/max on a Decimal field, and you pass the value as a string (which is supposed to be supported,) a crash occurs.

    field.marshal(mapper_session)
kim/field.py:344: in marshal
    run_pipeline(self.marshal_pipes, session, self, **opts)
kim/pipelines/base.py:176: in run_pipeline
    pipe_func(session)
kim/pipelines/base.py:104: in inner
    return pipe_func(session)
kim/pipelines/numeric.py:46: in bounds_check
    if min_ is not None and session.data < min_:```
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

No branches or pull requests

1 participant