def __getattr__(self, name):
        """Retrieve the requested attribute if it exists.

        Args:
            name: The attribute name.
        Returns:
            The attribute's value.
        Raises:
            AttributeError: if no such attribute exists.
        """
        if 'attributes' in self.__dict__:
            if name in self.attributes:
                return self.attributes[name]
        raise AttributeError(name)
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/pyactiveresource/activeresource.py/ActiveResource.__getattr__/original