Issue #156: Internal error (to do with sorting/serializing) (blais/beancount)

15 views
Skip to first unread message

Martin Blais

unread,
Jan 18, 2017, 11:44:34 PM1/18/17
to bean...@googlegroups.com
New issue 156: Internal error (to do with sorting/serializing)
https://bitbucket.org/blais/beancount/issues/156/internal-error-to-do-with-sorting

Martin Blais:

This is an error in Beancount (although Fava could handle it better and still render the page).

@blais: In this line (where Beancount renders the DisplayContext to a string) it tries to sort the dict of currencies to _CurrencyContexts. That's fine if all the currencies are strings, but in this case a _CurrencyContext for beancount.core.number.MISSING has been generated which causes the TypeErrror as the index is of type type and not str. Either DisplayContext.__str__ should handle this case or this _CurrencyContext should be prevented from being created in the first place.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.



https://github.com/beancount/fava/issues/472#issuecomment-273048476

Responsible: blais
Reply all
Reply to author
Forward
0 new messages