Skip to content

Commit 85e64a6

Browse files
committed
Initialize logger before parsing the values
1 parent 5351c77 commit 85e64a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wsuks/helpers/regpol_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def __init__(self, policy_data):
3636
self.data = policy_data
3737
self.parsed_regpol = []
3838
self.policies = []
39-
self.parse_policy()
4039
self.logger = logging.getLogger("wsuks")
4140

41+
# Start parsing the registry policy data
42+
self.parse_policy()
43+
4244
for policy in self.parsed_regpol:
4345
# Parsing the data based on the type
4446
# src: https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-value-types

0 commit comments

Comments
 (0)