catch AttributeError