Getting attribute error

Thank you for the support.