raise Exception when AttributeError raised