def process(self, d):
        if d is None:
            # Special case for when no doc could be found and that is OK
            return None

        try:
            value = _lookup_keys(self.keys, d)
        except __HOLE__:
            if self.if_missing is not None:
                Exc, args = self.if_missing[0], self.if_missing[1:]
                raise Exc(*args)
            else:
                return None

        return self.apply(value)
dataset/ETHPy150Open wiki-ai/revscoring/revscoring/extractors/api/util.py/key.process