Skip to content

Commit

Permalink
fix: add check to row to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall authored and polarmutex committed Jul 5, 2024
1 parent 5fd2cde commit 1332490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fava_envelope/modules/beancount_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def envelope_tables(self):
)
for row in rows[1]:
if any(regexp.match(row[0]) for regexp in self.budget_accounts):
if row[1] is not None:
if len(row) > 1 and row[1] is not None:
starting_balance += row[1]
self.income_df[months[0]]["Avail Income"] += starting_balance

Expand Down

0 comments on commit 1332490

Please sign in to comment.