Skip to content

Commit db665c0

Browse files
committed
Don't skip silently, bug provide a debug log
1 parent da7cb78 commit db665c0

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

nxc/modules/lockscreendoors.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,9 @@ def on_admin_login(self, context, connection):
7979
else:
8080
expected_str = ", ".join(f"'{d}'" for d in expected_descs)
8181
expected_str = f"one of: {expected_str}"
82-
context.log.highlight(
83-
f"SUSPICIOUS: {exe} has unexpected FileDescription '{file_desc}' (expected {expected_str})"
84-
)
85-
86-
except Exception:
87-
# Silently skip if the file is not readable or doesn't exist
88-
continue
82+
context.log.highlight(f"SUSPICIOUS: {exe} has unexpected FileDescription '{file_desc}' (expected {expected_str})")
83+
except Exception as e:
84+
context.log.debug(f"Failed to process {exe}: {e}")
8985

9086
if not tampered:
9187
context.log.display("All lock screen executable descriptions are consistent with the expected values")

0 commit comments

Comments
 (0)