Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on abs(): #8

Open
kaiwei opened this issue Feb 19, 2023 · 0 comments
Open

Crash on abs(): #8

kaiwei opened this issue Feb 19, 2023 · 0 comments

Comments

@kaiwei
Copy link

kaiwei commented Feb 19, 2023

Thanks for this. Looks great and was trying it out but ran into the below. bean-check has no errors


Exception caused by rrows value:
[datetime.date(2023, 2, 10), 'Expenses:[XXX]', Decimal('2.160000'), None, Decimal('0.03000000000000'), Decimal('2.160000'), Decimal('2.16'), ['[Assets:[YYY]', 'Assets:[YYY]']]
Traceback (most recent call last):
File "/usr/bin/budget-report", line 8, in
sys.exit(script_main())
File "/[XXX]/lib/python3.10/site-packages/budgetreport/main.py", line 38, in script_main
br = report.generateBudgetReport(entries, options_map, args)
File "/[XXX]/python3.10/site-packages/budgetreport/report.py", line 199, in generateBudgetReport
br.total_income = abs(rrows[len(rrows)-1][3])
TypeError: bad operand type for abs(): 'NoneType'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant