Commits

Gregory Haskins committed 4e8ccc9

Also catch api errors (e.g. ApplicationError, QuotaError) when sending messages.

  • Participants
  • Parent commits 344fca1
  • Branches mailfix

Comments (0)

Files changed (1)

 from django.core.mail import EmailMultiAlternatives
 from django.core.exceptions import ImproperlyConfigured
 from google.appengine.api import mail as aeemail
+from google.appengine.runtime import apiproxy_errors
 
 def _send_deferred(message, fail_silently=False):
     try:
         message.send()
-    except aeemail.Error:
+    except (aeemail.Error, apiproxy_errors.Error):
         if not fail_silently:
             raise
 
             return True
         try:
             message.send()
-        except aeemail.Error:
+        except (aeemail.Error, apiproxy_errors.Error):
             if not self.fail_silently:
                 raise
             return False