Skip to content

Commit

Permalink
Merge pull request #111 from mrvisscher/missing_hasattr
Browse files Browse the repository at this point in the history
Fix missing `hasattr` in `lca_base`
  • Loading branch information
cmutel authored Oct 16, 2024
2 parents 5a26969 + 246f413 commit 0876f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bw2calc/lca_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0876f0f

Please sign in to comment.