diff --git a/src/fava/beans/prices.py b/src/fava/beans/prices.py index a2eab0d1a..6b06f79e7 100644 --- a/src/fava/beans/prices.py +++ b/src/fava/beans/prices.py @@ -152,6 +152,10 @@ def get_nested_price( base_quote: BaseQuote, date: datetime.date | None = None, ) -> Decimal | None: + prices_number = self.get_price(base_quote, date) + if prices_number is not None: + # fast path + return prices_number all_commodity = [ commodity_pairs[0] for commodity_pairs in list(self._map.keys()) ]