removed 'execptions'

using attributeError directly