so how about changing to something like _ = self.obj._get_axis(axis) # raise error if wrong