New issue 141: beancount fails with ValueError: day is out of range for month 
on document
https://bitbucket.org/blais/beancount/issues/141/beancount-fails-with-valueerror-day-is-out

Renato Alves:

This was a tricky one.

The error:

```
#!python
  ...
  File 
"/virtualenvs/beancount/lib/python3.4/site-packages/beancount/ops/documents.py",
 line 141, in find_documents
    date = datetime.date(*map(int, match.group(1, 2, 3)))
ValueError: day is out of range for month
```

Initially I thought I had mistyped a date in my document. Turned out the cause 
was a document named `2016-09-31.doc.pdf`.

Obviously beancount is correct in that the month 9 only has 30 days, therefore 
31 is invalid. However it crashes with a traceback that provides no helpful 
information of what is wrong. Be it a line in the document or in this case, the 
name of the offending file.


-- 
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/20161029201303.15354.45964%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to