Skip to content

Commit

Permalink
Fix key error
Browse files Browse the repository at this point in the history
  • Loading branch information
grablair committed Aug 1, 2024
1 parent 26b65e4 commit 572b810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splitwise_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def handle_personal_loans(self, loans):
user_id = loan['user_id']
rate = loan['rate']
budget_category = loan['budget_category']
interest_free_balance = loan['interest_free_balance'] or 0
interest_free_balance = loan.get('interest_free_balance', 0)

logger.info(f"Processing loan for user {self.splitwise_user_id_to_name(user_id)} ({user_id}), with rate of {rate}")

Expand Down

0 comments on commit 572b810

Please sign in to comment.