Catch AttributeError exception