From 246f4130cf2b3bb568435d2bf2879d3b577858fb Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Wed, 16 Oct 2024 13:58:41 +0200 Subject: [PATCH] Fix missing `hasattr` in `lca_base` --- bw2calc/lca_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bw2calc/lca_base.py b/bw2calc/lca_base.py index 5044289..9741611 100644 --- a/bw2calc/lca_base.py +++ b/bw2calc/lca_base.py @@ -198,7 +198,7 @@ def lcia(self, demand: Optional[dict] = None) -> None: Doesn't return anything, but creates ``self.characterized_inventory``. """ - assert hasattr(self, "inventory") or (self, "inventories"), "Must do lci first" + assert hasattr(self, "inventory") or hasattr(self, "inventories"), "Must do lci first" if not self.dicts.biosphere: raise EmptyBiosphere