There's a bug in beanprice.
This looks related to code submitted from a PR a little while ago that I
copied over when I moved the repo.
A test is still missing:
https://github.com/beancount/beanprice/commit/b2685fea866a8696f9d5c25e851d30b62d6a02a2


On Sat, Jan 30, 2021 at 5:29 PM Ghanashyam Prabhu <gpio....@gmail.com>
wrote:

> I see this error recently when I run beanprice --update
> --update-rate=daily on my beancount file. I don't recollect changing much
> on my beancount file. Below is the error message. What does 'Trim end date
> is before start date' error indicate?
>
> Traceback (most recent call last):
>   File "/usr/local/bin/bean-price", line 8, in <module>
>     sys.exit(main())
>   File "/usr/local/lib/python3.9/site-packages/beanprice/price.py", line
> 809, in main
>     args, jobs, entries, dcontext = process_args()
>   File "/usr/local/lib/python3.9/site-packages/beanprice/price.py", line
> 782, in process_args
>     jobs.extend(get_price_jobs_up_to_date(entries,
>   File "/usr/local/lib/python3.9/site-packages/beanprice/price.py", line
> 412, in get_price_jobs_up_to_date
>     lifetimes.trim_intervals(intervals,
>   File
> "/usr/local/lib/python3.9/site-packages/beancount/ops/lifetimes.py", line
> 120, in trim_intervals
>     raise ValueError('Trim end date is before start date')
> ValueError: Trim end date is before start date
>
> Ghanashyam
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/40dc70ea-83e8-4e58-9891-f0f8784f5f37n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/40dc70ea-83e8-4e58-9891-f0f8784f5f37n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhOcKVspjQ9OP79VJEO5wQWxp6vUgB8jQhR-z0wvkYR7Rg%40mail.gmail.com.

Reply via email to