Skip to content

Commit

Permalink
Merge pull request #31 from soloam/fix_budget_limits
Browse files Browse the repository at this point in the history
fix: empty budget limits
  • Loading branch information
soloam authored May 21, 2024
2 parents 629a30d + e12e5b8 commit be6f99e
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 be6f99e

Please sign in to comment.