Skip to content

Commit

Permalink
Handle invalid UTF-8 bytes during decode
Browse files Browse the repository at this point in the history
  • Loading branch information
nusantara-self authored Jul 8, 2024
1 parent 0400142 commit f6a9835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/EmlParser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parseEml(filepath, job_directory, wkhtmltoimage, sanitized_rendering):
##
## Extract raw email
##
result["raw_email"] = raw_email.decode("utf-8")
result["raw_email"] = raw_email.decode("utf-8", errors="replace")
##
## Extract SMTP envelope
##
Expand Down

0 comments on commit f6a9835

Please sign in to comment.