Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/print_exported_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

def run(command: List[str]) -> str:
"""Run subprocess and return its output."""
result = subprocess.run(command, capture_output=True, check=True, cwd=BUCK_CWD)
try:
result = subprocess.run(command, capture_output=True, check=True, cwd=BUCK_CWD)
except CalledProcessError as ex:

Check failure on line 27 in scripts/print_exported_headers.py

View workflow job for this annotation

GitHub Actions / lintrunner / linux-job

MYPY name-defined

Name "CalledProcessError" is not defined To disable, use ` # type: ignore[name-defined]`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be imported?

print(f"Subprocess failed. stdout: {ex.stdout}\nstderr: {ex.stderr}")
raise
return result.stdout.decode()


Expand Down
Loading