Skip to content

Commit

Permalink
Fix condition for deprecated '--cron' argument in "send_mail" command
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Feb 8, 2024
1 parent 990cd03 commit 743f701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mailer/management/commands/send_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 743f701

Please sign in to comment.