Skip to content

Conversation

rivos-eblot
Copy link

@rivos-eblot rivos-eblot commented Oct 9, 2025

subprocess.check_output may raise a SubprocessError, which is not a subclass of OSError.

For example, when a git repository exists but no tag has been defined, git "describe" command exits with an error, which is translated into a (subclass of) SubprocessError exception by the subprocess module.

Handle any SubprocessError exception.

subprocess.check_output may raise a SubprocessError, which is not a subclass of OSError.

For example, when a git repository exists but no tag has been defined, git "describe"
command exits with an error, which is translated into a (subclass of) SubprocessError
exception by the subprocess module.

Handle any SubprocessError exception.

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
@rivos-eblot rivos-eblot requested a review from AlexJones0 October 9, 2025 16:14
Copy link

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

LGTM

@rivos-eblot rivos-eblot merged commit c70f4d0 into lowRISC:ot-9.2.0 Oct 9, 2025
9 checks passed
@rivos-eblot rivos-eblot deleted the dev/ebl/git_err_fix branch October 9, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants