def _log_error(self, bundle, url, e):
        if self.logger:
            self.logger.error('Error when handle bundle: %s, url: %s' % (
                str(bundle), str(url)))
            self.logger.exception(e)
        if url == getattr(bundle, 'error_url', None):
            bundle.error_times = getattr(bundle, 'error_times', 0) % 1
        else:
            bundle.error_times = 0
            bundle.error_url = url
            
        self.counter_client.local_inc(self.ip, self.id_, 
                                      'error_urls', 1)
        self.counter_client.global_inc('error_urls', 1)
dataset/ETHPy150Open chineking/cola/cola/job/executor.py/BundleExecutor._log_error/operator `+` -> `%`