Commits

dready committed a612c78

ignore email sending error even in DEBUG mode

Comments (0)

Files changed (1)

src/factory/signals.py

         send_mail(subject, msg, settings.SERVER_EMAIL,
                   recipients, fail_silently=False)
     except:
-        if settings.DEBUG:
-            raise
-        # in production, if sending this email fails, django is unlikely to send the error mail either
+        # in production, if sending this email fails, django is unlikely to send the error mail.
+        # in debug, we can't really tell if this came from loaddata (fixtures).. 
         # so we just ignore the error
         logging.getLogger(__name__).exception("unable to send build email")