修复质量验证:真实密钥扫描器忽略自身扫描规则

This commit is contained in:
wangzhibiao committed 2026-09-17 10:42:47 +08:00
1 parent 5abcc1700c
commit fe46bdd60b
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ def scan():
} }
for fpath in target_files: for fpath in target_files:
if not os.path.exists(fpath): if not os.path.exists(fpath) or os.path.abspath(fpath) == os.path.abspath(__file__):
continue continue
try: try:
with open(fpath, 'r', encoding='utf-8', errors='ignore') as f: with open(fpath, 'r', encoding='utf-8', errors='ignore') as f: