Skip to content

Commit

Permalink
Fix 'NoneType' object has no attribute 'lower'
Browse files Browse the repository at this point in the history
  • Loading branch information
frack113 committed Sep 27, 2021
1 parent 8de7cc2 commit a0b48b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sigma/backends/sysmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def createTableFromLogsource(self):
raise NotSupportedError(
"Not supported logsource. Should be product `windows`.")
for item in self.logsource.values():
if item.lower() in self.allowedSource.keys():
if str(item).lower() in self.allowedSource.keys():
self.table = self.allowedSource.get(item.lower())
break
else:
Expand Down

0 comments on commit a0b48b9

Please sign in to comment.