summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2026-01-07 10:24:16 +0000
committerGitHub <noreply@github.com>2026-01-07 18:24:16 +0800
commit1e683923e1e42dda42911ebbaa191776aec3a626 (patch)
treeb6dcf33c121a119b982ccc6b281f2910b6f5b543
parent31948625020db943f2a5272a43876983c404d814 (diff)
Handle broken symlinks in `qmk doctor` udev checks (#25934)
Handle broken symlinks in 'qmk doctor' udev checks
-rw-r--r--lib/python/qmk/cli/doctor/linux.py2
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():
87 line = line.strip() 87 line = line.strip()
88 if not line.startswith("#") and len(line): 88 if not line.startswith("#") and len(line):
89 current_rules.add(line) 89 current_rules.add(line)
90 except PermissionError: 90 except (PermissionError, FileNotFoundError):
91 cli.log.debug("Failed to read: %s", rule_file) 91 cli.log.debug("Failed to read: %s", rule_file)
92 92
93 # Check if the desired rules are among the currently present rules 93 # Check if the desired rules are among the currently present rules