fix: auto-fix code issues (cron)
- 修复重复导入/字段 - 修复异常处理(将裸 except: 改为具体异常类型) - 修复PEP8格式问题 - 添加类型注解
This commit is contained in:
@@ -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 # 模拟成功
|
||||
|
||||
|
||||
Reference in New Issue
Block a user