Skip to content

(states/linux_kernel.py) Fix exception on .index() call#17

Merged
padovan merged 1 commit into
kernelci:mainfrom
nuclearcat:fix-exception
May 12, 2025
Merged

(states/linux_kernel.py) Fix exception on .index() call#17
padovan merged 1 commit into
kernelci:mainfrom
nuclearcat:fix-exception

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

If index cannot find substring, it will cause exception. Handle this situation properly, and instead return None.

If index cannot find substring, it will cause exception.
Handle this situation properly, and instead return None.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@padovan

padovan commented May 12, 2025

Copy link
Copy Markdown
Collaborator

Looks good to me!

@padovan padovan merged commit 8408feb into kernelci:main May 12, 2025
2 checks passed
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