diff --git a/src/mailer/engine.py b/src/mailer/engine.py index abdbe7c..2abe8d9 100644 --- a/src/mailer/engine.py +++ b/src/mailer/engine.py @@ -99,7 +99,7 @@ def _limits_reached(sent, deferred): EMAIL_MAX_BATCH = getattr(settings, "MAILER_EMAIL_MAX_BATCH", None) if EMAIL_MAX_BATCH is not None and sent >= EMAIL_MAX_BATCH: - logger.info("EMAIL_MAX_BATCH (%s) reached, " "stopping for this round", EMAIL_MAX_BATCH) + logger.info("EMAIL_MAX_BATCH (%s) reached, stopping for this round", EMAIL_MAX_BATCH) return True # Stop sending emails in the current round if more than X emails get @@ -107,7 +107,7 @@ def _limits_reached(sent, deferred): EMAIL_MAX_DEFERRED = getattr(settings, "MAILER_EMAIL_MAX_DEFERRED", None) if EMAIL_MAX_DEFERRED is not None and deferred >= EMAIL_MAX_DEFERRED: - logger.warning("EMAIL_MAX_DEFERRED (%s) reached, " "stopping for this round", EMAIL_MAX_DEFERRED) + logger.warning("EMAIL_MAX_DEFERRED (%s) reached, stopping for this round", EMAIL_MAX_DEFERRED) return True diff --git a/src/mailer/management/commands/purge_mail_log.py b/src/mailer/management/commands/purge_mail_log.py index d1d6151..83d39a9 100644 --- a/src/mailer/management/commands/purge_mail_log.py +++ b/src/mailer/management/commands/purge_mail_log.py @@ -18,7 +18,7 @@ def add_arguments(self, parser): "-r", "--result", choices=RESULT_CODES.keys(), - help="Delete logs of messages with the given result code(s) " "(default: success)", + help="Delete logs of messages with the given result code(s) (default: success)", ) def handle(self, *args, **options): diff --git a/src/mailer/management/commands/retry_deferred.py b/src/mailer/management/commands/retry_deferred.py index 9eed3b0..64298e9 100644 --- a/src/mailer/management/commands/retry_deferred.py +++ b/src/mailer/management/commands/retry_deferred.py @@ -15,7 +15,7 @@ class Command(CronArgMixin, BaseCommand): def handle(self, *args, **options): if options["cron"]: warnings.warn( - "retry_deferred's -c/--cron option is no longer " "necessary and will be removed in a future release", + "retry_deferred's -c/--cron option is no longer necessary and will be removed in a future release", DeprecationWarning, ) count = Message.objects.retry_deferred() # @@@ new_priority not yet supported diff --git a/src/mailer/management/commands/send_mail.py b/src/mailer/management/commands/send_mail.py index d4455a9..409a3be 100644 --- a/src/mailer/management/commands/send_mail.py +++ b/src/mailer/management/commands/send_mail.py @@ -19,7 +19,7 @@ class Command(CronArgMixin, BaseCommand): def handle(self, *args, **options): if options["cron"] == 0: warnings.warn( - "send_mail's -c/--cron option is no longer " "necessary and will be removed in a future release", + "send_mail's -c/--cron option is no longer necessary and will be removed in a future release", DeprecationWarning, ) logger.info("-" * 72)