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.


-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20170418170407.17314.14275%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to