Skip to content

Fix too-many-statements-in-try-clause violations#4648

Open
codefiles wants to merge 1 commit into
archlinux:masterfrom
codefiles:fix-ruff-try
Open

Fix too-many-statements-in-try-clause violations#4648
codefiles wants to merge 1 commit into
archlinux:masterfrom
codefiles:fix-ruff-try

Conversation

@codefiles

Copy link
Copy Markdown
Contributor

ruff check --preview gives errors on these.

https://docs.astral.sh/ruff/rules/too-many-statements-in-try-clause/

@codefiles
codefiles requested a review from Torxed as a code owner July 20, 2026 12:59
debug(f'failed to enable wpa_supplicant: {err}')
return False

result = self._wpa_cli('status') # if it it's running it will blow up

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If the comment is still valid than calling status will throw an exception so it should be tried with return false no

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