Skip to content

Commit c11090e

Browse files
committed
Remove unnecessary try&except
1 parent d7333e2 commit c11090e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

nxc/modules/whoami.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ def on_login(self, context, connection):
4848
],
4949
sizeLimit=999,
5050
)
51-
try:
52-
resp_parsed = parse_result_attributes(r)
53-
except LDAPFilterSyntaxError as e:
54-
self.logger.fail(f"LDAP Filter Syntax Error: {e}")
55-
return
51+
resp_parsed = parse_result_attributes(r)
5652

5753
for response in resp_parsed:
5854

0 commit comments

Comments
 (0)