Handle broken symlinks in qmk doctor udev checks (#25934)

Handle broken symlinks in 'qmk doctor' udev checks
This commit is contained in:
Joel Challis 2026-01-07 10:24:16 +00:00 committed by GitHub
parent 3194862502
commit 1e683923e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ def check_udev_rules():
line = line.strip()
if not line.startswith("#") and len(line):
current_rules.add(line)
except PermissionError:
except (PermissionError, FileNotFoundError):
cli.log.debug("Failed to read: %s", rule_file)
# Check if the desired rules are among the currently present rules