Skip to content

Commit 0876f0f

Browse files
authored
Merge pull request #111 from mrvisscher/missing_hasattr
Fix missing `hasattr` in `lca_base`
2 parents 5a26969 + 246f413 commit 0876f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bw2calc/lca_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def lcia(self, demand: Optional[dict] = None) -> None:
198198
Doesn't return anything, but creates ``self.characterized_inventory``.
199199
200200
"""
201-
assert hasattr(self, "inventory") or (self, "inventories"), "Must do lci first"
201+
assert hasattr(self, "inventory") or hasattr(self, "inventories"), "Must do lci first"
202202
if not self.dicts.biosphere:
203203
raise EmptyBiosphere
204204

0 commit comments

Comments
 (0)