feat: stabilize multi-region runtime sync and worker orchestration
This commit is contained in:
@@ -83,10 +83,9 @@ class BaiduDetector(BaseDetector):
|
||||
}
|
||||
else:
|
||||
self._log_warning(f"百度site查询失败: {response.status_code}")
|
||||
return {'has_收录': False, 'subdomains': []}
|
||||
return {'error': f'HTTP {response.status_code}'}
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return {'has_收录': False, 'subdomains': []}
|
||||
return self._handle_exception(e, domain)
|
||||
|
||||
def check_history(self, domain):
|
||||
"""
|
||||
@@ -123,10 +122,9 @@ class BaiduDetector(BaseDetector):
|
||||
}
|
||||
else:
|
||||
self._log_warning(f"百度历史查询失败: {response.status_code}")
|
||||
return {'has_history': False, 'has_gray': False}
|
||||
return {'error': f'HTTP {response.status_code}'}
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return {'has_history': False, 'has_gray': False}
|
||||
return self._handle_exception(e, domain)
|
||||
|
||||
def _extract_subdomains(self, content, domain):
|
||||
"""
|
||||
@@ -148,4 +146,4 @@ class BaiduDetector(BaseDetector):
|
||||
return subdomains
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return []
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user