I need to get the number of lines on a slide. To access the lines, I am using MSO_CONNECTOR as it is not an AUTO_SHAPE. However when I run the below it returns an None value for some reason. How can I know if a shape is a line or not? (tried using is_connector also returned an error)
def get_number_of_lines(slide):
lines = 0
for shape in slide.shapes:
if shape.shape_type == MSO_CONNECTOR:
print('it is a line')
lines = lines + 1
return lines