Skip to content

Commit e3f9f1e

Browse files
committed
Check whether props are a dict
1 parent 37daffc commit e3f9f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bw_functional/allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_property_value(
101101

102102
props = product.get("properties")
103103

104-
if not props:
104+
if not props or not isinstance(props, dict):
105105
raise KeyError(f"Product {product} from process {product.processor} doesn't have properties")
106106

107107
prop = props.get(property_label)

0 commit comments

Comments
 (0)