Skip to content

Commit

Permalink
fix empty legacy loan
Browse files Browse the repository at this point in the history
  • Loading branch information
ealexch committed Jan 9, 2025
1 parent 9c4ec8a commit b83de4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
self.out_date: datetime = temp_date_out
self.correct_for_1_day_loans()
self.make_utc()
self.renewal_count = int(legacy_loan_dict["renewal_count"])
self.renewal_count = int(legacy_loan_dict.get("renewal_count", 0))
self.next_item_status = legacy_loan_dict.get("next_item_status", "").strip()
if self.next_item_status not in legal_statuses:
self.errors.append(("Not an allowed status", self.next_item_status))
Expand Down

0 comments on commit b83de4c

Please sign in to comment.