Handle broken symlinks in qmk doctor udev checks (#25934)
Handle broken symlinks in 'qmk doctor' udev checks
This commit is contained in:
parent
3194862502
commit
1e683923e1
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def check_udev_rules():
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if not line.startswith("#") and len(line):
|
if not line.startswith("#") and len(line):
|
||||||
current_rules.add(line)
|
current_rules.add(line)
|
||||||
except PermissionError:
|
except (PermissionError, FileNotFoundError):
|
||||||
cli.log.debug("Failed to read: %s", rule_file)
|
cli.log.debug("Failed to read: %s", rule_file)
|
||||||
|
|
||||||
# Check if the desired rules are among the currently present rules
|
# Check if the desired rules are among the currently present rules
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue