Skip to content

Commit

Permalink
fix: empty budget limits
Browse files Browse the repository at this point in the history
  • Loading branch information
soloam committed May 21, 2024
1 parent 77ccac4 commit e12e5b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ async def budgets(self, ids=None, currency=None) -> FireflyiiiObjectBaseList:
limit_attributes = budget_limit.get("attributes", {})

try:
start_limit = datetime.fromisoformat(limit_attributes.get("start"))
end_limit = datetime.fromisoformat(limit_attributes.get("end"))
start_limit = datetime.fromisoformat(limit_attributes.get("start",""))
end_limit = datetime.fromisoformat(limit_attributes.get("end",""))
except (ValueError, TypeError):
start_limit = None
end_limit = None
Expand Down

0 comments on commit e12e5b8

Please sign in to comment.