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

-- 
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 beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20170119044433.20639.23326%40celery-worker-101.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to