diff --git a/src/building_blocks.jl b/src/building_blocks.jl index ba927b0da94f5205cd2e84cbd539fa97e3e04088..5d932fe203fa92b2697e00cbd3db3b64b4e9129e 100644 --- a/src/building_blocks.jl +++ b/src/building_blocks.jl @@ -202,8 +202,16 @@ function owner_model(bb::BuildingBlock) end end end - error("Cannot find owner model of $bb") + error("Cannot find owner model") +end + +function has_values(bb::BuildingBlock) + try + return has_values(owner_model(bb)) + catch + # return true for building blocks without a model + return true + end end -has_values(bb::BuildingBlock) = has_values(owner_model(bb)) end \ No newline at end of file