diff --git a/mailparser/utils.py b/mailparser/utils.py index 3fd4a3c..b25fa34 100644 --- a/mailparser/utils.py +++ b/mailparser/utils.py @@ -230,8 +230,8 @@ def msgconvert(email): command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) - except OSError: - message = "To use this function you must install 'msgconvert' tool" + except OSError as e: + message = "Check if 'msgconvert' tool is installed / {!r}".format(e) log.exception(message) raise MailParserOSError(message)