检查参数信息是否匹配

def _check_params(self, *args, **kwargs):
        """ 检查参数信息是否匹配 """
        terms = kwargs.get('terms')
        if not terms:
            raise crawler.CrawlerParamsError('Terms needed!')

        if not isinstance(terms, list):
            terms = [terms]
        if len(terms) != len(self.base['terms']):
            # raise crawler.CrawlerParamsError('args length must match base[terms]')
            log.debug('args length {} != {} must match base[terms]'.format(len(terms), len(self.base['terms'])))