Skip to content

Fix bare except clause in setup.py#5051

Open
koteshyelamati wants to merge 1 commit into
secdev:masterfrom
koteshyelamati:master
Open

Fix bare except clause in setup.py#5051
koteshyelamati wants to merge 1 commit into
secdev:masterfrom
koteshyelamati:master

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: with except ImportError: in setup.py.

The guarded block imports from setuptools — specifically from setuptools import .... The only exception that can reasonably be raised here is ImportError (when setuptools is not installed). Using except ImportError: makes the intent explicit and avoids accidentally swallowing KeyboardInterrupt or SystemExit.

@polybassa

Copy link
Copy Markdown
Contributor

Thanks for the PR, please fix the commit validity check.

@koteshyelamati

Copy link
Copy Markdown
Author

Thank you for the review, @polybassa! Could you clarify what the commit validity check requires? I see the "Check the validity of the commits" CI check is failing — is this a DCO sign-off (Signed-off-by) requirement, or a commit message format issue? I'll be happy to fix it once I know what's needed.

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