Python Error - object has no attribute element id

snapshot is a code which is for finding connected elements of a pipe fittings…if we pass a revit pipe fitting as element (variable in code), then its elements connected will be stored in the variable Elementsconnected.I am using a for loop for finding element Ids of elements connected…but i am getting an error which says list object has no attribute element id…What are the possible reasons this error?
image

have you tried MEPover package “MEP Connector info” node, It does the exact same thing. and you can also take a look at the code within.

sure…I will take a look