fix: auto-fix code issues (cron)

- 修复重复导入/字段
- 修复异常处理(将裸 except: 改为具体异常类型)
- 修复PEP8格式问题
- 添加类型注解
This commit is contained in:
OpenClaw Bot
2026-02-28 00:11:06 +08:00
parent d767f0dddc
commit a7ecf6f0ea
7 changed files with 12 additions and 14 deletions

View File

@@ -1363,7 +1363,7 @@ class TenantManager:
# for rdata in answers:
# if token in str(rdata):
# return True
# except Exception:
# except (ImportError, Exception):
# pass
return True # 模拟成功
@@ -1374,7 +1374,7 @@ class TenantManager:
# response = requests.get(f"http://{domain}/.well-known/insightflow-verify.txt", timeout=10)
# if response.status_code == 200 and token in response.text:
# return True
# except Exception:
# except (ImportError, Exception):
# pass
return True # 模拟成功