def iter_doc_objs(self, **kwargs):
        """Returns a pair: (doc_id, nexson_blob)
        for each document in this repository.
        Order is arbitrary.
        """
        _LOG = get_logger('TypeAwareGitShard')
        try:
            for doc_id, fp in self.iter_doc_filepaths(**kwargs):
                if not self._is_alias(doc_id):
                    # TODO:hook for type-specific parser?
                    with codecs.open(fp, 'r', 'utf-8') as fo:
                        try:
                            nex_obj = anyjson.loads(fo.read())
                            yield (doc_id, nex_obj)
                        except Exception:
                            pass
        except Exception as x:
            f = 'iter_doc_filepaths FAILED with this error:\n{}'
            f = f.format(str(x))
            _LOG.warn(f)
def iter_doc_objs ( self , ** kwargs ) : _LOG = get_logger ( 'TypeAwareGitShard' ) try : for doc_id , fp in self . iter_doc_filepaths ( ** kwargs ) : if not self . _is_alias ( doc_id ) : with codecs . open ( fp , 'r' , 'utf-8' ) as fo : try : nex_obj = anyjson . loads ( fo . read ( ) ) yield ( doc_id , nex_obj ) except Exception : pass except Exception as x : f = 'iter_doc_filepaths FAILED with this error:\n{}' f = f . format ( str ( x ) ) _LOG . warn ( f )
Returns a pair: (doc_id, nexson_blob)
        for each document in this repository.
        Order is arbitrary.