Skip to content
Snippets Groups Projects
Verified Commit 6a7e36ce authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

More robust finding of has_values

parent 1e85fa1d
No related branches found
No related tags found
No related merge requests found
...@@ -202,8 +202,16 @@ function owner_model(bb::BuildingBlock) ...@@ -202,8 +202,16 @@ function owner_model(bb::BuildingBlock)
end end
end 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 end
has_values(bb::BuildingBlock) = has_values(owner_model(bb))
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment