partners: bug fix check_imports.py exit code. (#30897)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
湛露先生
2025-04-17 20:02:23 +08:00
committed by GitHub
parent b36c2bf833
commit ff2930c119
3 changed files with 3 additions and 3 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

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

View File

@@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
traceback.print_exc()
sys.exit(1 if has_failure else 0)