فهرست منبع

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 4 سال پیش
والد
کامیت
a97ce45138
1فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  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"