Browse Source

fix: took off unused exception catching
The removed try-except is not hit and if it is hit, there is something
unexpected happening.

Mikael Koli 3 years ago
parent
commit
a97ce45138
1 changed files with 1 additions and 5 deletions
  1. 1 5
      redmail/email/sender.py

+ 1 - 5
redmail/email/sender.py

@@ -394,11 +394,7 @@ class EmailSender:
             # as otherwise content may be missing or it may be misrendered.
             # See: https://stackoverflow.com/a/23853079/13696660
             # See issues: #23, #37
-            try:
-                msg.make_mixed()
-            except ValueError:
-                # Cannot convert to mixed
-                pass
+            msg.make_mixed()
 
     def send_message(self, msg:EmailMessage):
         "Send the created message"