Skip to content

TypeError #10

@jaivikram

Description

@jaivikram

I was running the included tests and got

File "/code/appenv/src/sharpy/sharpy/product.py", line 477, in charge
each_amount = Decimal(each_amount)
File "/usr/lib/python2.6/decimal.py", line 649, in new
"First convert the float to a string")
TypeError: Cannot convert float to Decimal. First convert the float to a string

*I understand the error and fixed it for running my tests. Just sharing it so that fix becomes a part of the repo.

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