I am new to Python and I am trying to check docx file for texts in table that have hidden attribute applied to them. If True, then I want to ignore that hidden text and replace any other text that matches my regex. The thing is everything been good (replacement is working) until I added if i.font.hidden == True: condition