Skip to content

Commit

Permalink
Merge pull request #173 from eht16/fix_send_mail_command_cron_warning
Browse files Browse the repository at this point in the history
Fix condition for deprecated '--cron' argument in "send_mail" command
  • Loading branch information
spookylukey authored May 22, 2024
2 parents 8669999 + 743f701 commit d3bf9a3
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 d3bf9a3

Please sign in to comment.