diff --git a/blogs/management/commands/send_weekly_email.py b/blogs/management/commands/send_weekly_email.py index 7fb5cc8..4f54ee9 100644 --- a/blogs/management/commands/send_weekly_email.py +++ b/blogs/management/commands/send_weekly_email.py @@ -200,6 +200,8 @@ class Command(BaseCommand): coming_events, ] body = "".join(sections) + if body == "": + body = "

No new updates this week.

Why not spend the time you would have been reading, publishing your own blog post instead?

" for subscriber in subscribers: opt_out = f"https://{settings.DOMAIN}/unsubscribe-email/{subscriber.token}/{subscriber.id}"