summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/mime_delete.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/handlers/mime_delete.py')
-rw-r--r--src/mailman/handlers/mime_delete.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/handlers/mime_delete.py b/src/mailman/handlers/mime_delete.py
index 14aee1a0e..4f1b08ac7 100644
--- a/src/mailman/handlers/mime_delete.py
+++ b/src/mailman/handlers/mime_delete.py
@@ -279,7 +279,10 @@ def to_plaintext(msg):
try:
stdout = subprocess.check_output(
command, universal_newlines=True)
- except subprocess.CalledProcessError:
+ except (FileNotFoundError,
+ PermissionError,
+ subprocess.CalledProcessError,
+ ):
log.exception('HTML -> text/plain command error')
else:
# Replace the payload of the subpart with the converted text