Wall opening reinforcement error

when i try to run this script wall opening reinforcement it says that run completed with error, any body no why?

Try opening it in Dynamo, and running the graph there instead of in player. The error will become more apparent that way.