diff --git a/CHANGELOG.md b/CHANGELOG.md index 465ba47..05a5c94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ Collector (HEC) GeoIP DB to avoid being blocked by security proxies - Reduce default DNS timeout to 2.0 seconds - Add alignment booleans to JSON output +- Fix `.msg` parsing CLI exception when `msgconvert` is not found in the +system path 3.9.7 ----- diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 6235ede..7438401 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -958,10 +958,7 @@ def parse_report_email(input_, nameservers=None, timeout=2.0): with open(eml_path, "rb") as eml_file: rfc822 = eml_file.read() except FileNotFoundError: - raise FileNotFoundError( - "msgconvert not found. Please ensure it is installed\n" - "sudo apt install libemail-outlook-message-perl\n" - "https://github.com/mvz/email-outlook-message-perl") + raise ParserError("msgconvert utility not found") finally: os.chdir(orig_dir) shutil.rmtree(tmp_dir)