patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)

There are some incorrect declarations of variable `has_failure` in
check_imports. The purpose of this PR is to uniformly fix these errors.
This commit is contained in:
ZhangShenao
2024-08-04 01:49:41 +08:00
committed by GitHub
parent 7de62abc91
commit 2c3e3dc6b1
16 changed files with 16 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201