Skip to content

Commit

Permalink
Fix for #433
Browse files Browse the repository at this point in the history
  • Loading branch information
phutelmyer committed Feb 12, 2024
1 parent 31b825a commit af6d71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/strelka/scanners/scan_pe.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ def scan(self, data, file, options, expire_at):
return

if rich_dict := parse_rich(pe):
if type(rich_dict) is str:
if type(rich_dict) is not str:
self.event["rich"] = rich_dict
else:
self.flags.append(rich_dict)

if cert_dict := parse_certificates(data):
if type(cert_dict) is str:
if type(cert_dict) is not str:
self.event["security"] = cert_dict
else:
self.flags.append(cert_dict)
Expand Down

0 comments on commit af6d71f

Please sign in to comment.