def __repr__(self):
        return "{}('{}')".format(self.__class__.__name__, self.__str__())
Should look like RESTError('message: details')
dataset/ETHPy150Open openstack/ironic-python-agent/ironic_python_agent/errors.py/RESTError.__repr__