-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device_part_info: do not recurse if we did not match anything (#5169)
First off, the recursion was bogus, because it called the wrong function, but more importantly, it would lead to infinite recursion anyway, even if we called the right one. Throw a ValueError instead, because we've most likely been called with a bogus value. Add a test to show that. Sponsored by: The FreeBSD Foundation
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters