diff options
| author | Joel Challis | 2026-01-07 11:24:16 +0100 |
|---|---|---|
| committer | GitHub | 2026-01-07 11:24:16 +0100 |
| commit | 1e683923e1e42dda42911ebbaa191776aec3a626 (patch) | |
| tree | b6dcf33c121a119b982ccc6b281f2910b6f5b543 /lib/python | |
| parent | 31948625020db943f2a5272a43876983c404d814 (diff) | |
Handle broken symlinks in `qmk doctor` udev checks (#25934)
Handle broken symlinks in 'qmk doctor' udev checks
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/qmk/cli/doctor/linux.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/doctor/linux.py b/lib/python/qmk/cli/doctor/linux.py index f0850d4e64..c99cc6baea 100644 --- a/lib/python/qmk/cli/doctor/linux.py +++ b/lib/python/qmk/cli/doctor/linux.py @@ -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 |