From 743f701ffdf3957db274ec8be63e42b5ce3095fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 8 Feb 2024 08:24:11 +0100 Subject: [PATCH] Fix condition for deprecated '--cron' argument in "send_mail" command --- src/mailer/management/commands/send_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailer/management/commands/send_mail.py b/src/mailer/management/commands/send_mail.py index d4455a9..57ee965 100644 --- a/src/mailer/management/commands/send_mail.py +++ b/src/mailer/management/commands/send_mail.py @@ -17,7 +17,7 @@ class Command(CronArgMixin, BaseCommand): help = "Do one pass through the mail queue, attempting to send all mail." def handle(self, *args, **options): - if options["cron"] == 0: + if options["cron"]: warnings.warn( "send_mail's -c/--cron option is no longer " "necessary and will be removed in a future release", DeprecationWarning,