Skip to content

Commit 4546db8

Browse files
committed
Add debug log on parsing errors
1 parent 9ae0aec commit 4546db8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/modules/lockscreendoors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def get_description(self, binary_data):
4646
for st in entry.StringTable:
4747
desc = st.entries.get(b"FileDescription")
4848
if desc:
49-
return desc.decode(errors="ignore").strip()
50-
except Exception:
51-
return None
49+
return desc.decode().strip()
50+
except Exception as e:
51+
self.context.log.debug(f"Failed to extract PE info: {e}")
5252
return None
5353

5454
def on_admin_login(self, context, connection):

0 commit comments

Comments
 (0)