Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgerstmayr committed Jun 8, 2024
1 parent 72890f6 commit f842213
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fava_dashboards/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ def bootstrap(self, dashboard_id):
operating_currencies = self.ledger.options["operating_currency"]

if len(operating_currencies) == 0:
raise FavaAPIError(f"no operating currency specified in the ledger")
raise FavaAPIError("no operating currency specified in the ledger")
# pylint: disable=protected-access
if not g.filtered._date_first or not g.filtered._date_last:
raise FavaAPIError(
f"cannot determine first/last day of ledger, is the ledger empty?"
"cannot determine first/last day of ledger, is the ledger empty?"
)

commodities = {c.currency: c for c in self.ledger.all_entries_by_type.Commodity}
Expand Down

0 comments on commit f842213

Please sign in to comment.