summaryrefslogtreecommitdiffstats
path: root/packages/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'packages/management/commands')
-rw-r--r--packages/management/commands/signoff_report.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/management/commands/signoff_report.py b/packages/management/commands/signoff_report.py
index 3431dad..3357bc1 100644
--- a/packages/management/commands/signoff_report.py
+++ b/packages/management/commands/signoff_report.py
@@ -69,6 +69,10 @@ def generate_report(email, repo_name):
new_cutoff = now - timedelta(hours=new_hours)
old_cutoff = now - timedelta(days=old_days)
+ if len(signoff_groups) == 0:
+ # no need to send an email at all
+ return
+
for group in signoff_groups:
spec = group.specification
if spec.known_bad: