From f8422135fd5643e04fc404e218c08b486f6df25c Mon Sep 17 00:00:00 2001 From: Andreas Gerstmayr Date: Sun, 9 Jun 2024 00:28:18 +0200 Subject: [PATCH] fix linter --- src/fava_dashboards/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fava_dashboards/__init__.py b/src/fava_dashboards/__init__.py index d65ed43..8ee23ca 100644 --- a/src/fava_dashboards/__init__.py +++ b/src/fava_dashboards/__init__.py @@ -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}