

def __init__(self, message=None, **kwargs):
    self.kwargs = kwargs
    if ('code' not in self.kwargs):
        try:
            self.kwargs['code'] = self.code
        except AttributeError:
            pass
    if (not message):
        try:
            message = (self.msg_fmt % name)
        except Exception:
            LOG.exception('Exception in string format operation')
            for (name, value) in kwargs.iteritems():
                LOG.error(('%s: %s' % (name, value)))
            message = self.msg_fmt
    super(OCCIException, self).__init__(message)

dataset/ETHPy150Open openstack/ooi/ooi/exception.py OCCIException.__init__/VarMisuse@79/92 `kwargs`->`name`