Issue #164: infer_tolerance_from_cost broken (blais/beancount)

13 views
Skip to first unread message

Jeremy Maitin-Shepard

unread,
Apr 18, 2017, 1:04:09 PM4/18/17
to bean...@googlegroups.com
New issue 164: infer_tolerance_from_cost broken
https://bitbucket.org/blais/beancount/issues/164/infer_tolerance_from_cost-broken

Jeremy Maitin-Shepard:

Some of the booking changes seem to have broken the infer_tolerance_from_cost option: it results in:

File "beancount/src/python/beancount/core/interpolate.py", line 209, in infer_tolerances
cost_tolerance = min(tolerance * cost_number, cost_tolerance)
TypeError: unsupported operand type(s) for *: 'decimal.Decimal' and 'type'

because cost_number is the special MISSING value.

The attached trivial patch seems to fix it.


Reply all
Reply to author
Forward
0 new messages