pep8
authorJan Szejko <janek37@gmail.com>
Wed, 7 Nov 2018 14:07:13 +0000 (15:07 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 7 Nov 2018 14:07:13 +0000 (15:07 +0100)
wtem/management/commands/__init__.py

index ce7191f..7fe1eba 100644 (file)
@@ -11,8 +11,8 @@ def send_mail(subject, body, to):
     if reply_to:
         headers['Reply-To'] = reply_to
 
-    email = EmailMessage(subject, body,
+    email = EmailMessage(
+        subject, body,
         getattr(settings, 'WTEM_FROM', 'olimpiada@nowoczesnapolska.org.pl'),
-        to, headers = headers)
-    #print email.message()
-    email.send(fail_silently = False)
+        to, headers=headers)
+    email.send()