def __init__(self, message=None, **kwargs):
        self.kwargs = kwargs

        if 'code' not in self.kwargs:
            try:
                self.kwargs['code'] = self.code
            except __HOLE__:
                pass

        if not message:
            message = self.message % kwargs

        super(ClimateClientException, self).__init__(message)
dataset/ETHPy150Open openstack/python-blazarclient/climateclient/exception.py/ClimateClientException.__init__