Commits

Tay Ray Chuan  committed dab27f7

satchmo_store.mail.send_store_mail: use docstring for email dump

  • Participants
  • Parent commits 099f5bc

Comments (0)

Files changed (1)

File satchmo/apps/satchmo_store/mail.py

     except SocketError, e:
         if settings.DEBUG:
             log.error('Error sending mail: %s' % e)
-            log.warn('Ignoring email error, since you are running in DEBUG mode.  Email was:\nTo: %s\nSubject: %s\n---\n%s' % (",".join(recipients), subject, body))
+            log.warn("""Ignoring email error, since you are running in DEBUG mode.  Email was:
+To: %s
+Subject: %s
+---
+%s""" % (",".join(recipients), subject, body))
         else:
             log.fatal('Error sending mail: %s' % e)
             raise IOError('Could not send email. Please make sure your email settings are correct and that you are not being blocked by your ISP.')