May be you want to transmit the original error text of the caught AttributeError additionaly. But it is just an idea. Feel free to do it or not.