diff --git a/tdrs-backend/tdpservice/data_files/management/commands/find_pending_submissions.py b/tdrs-backend/tdpservice/data_files/management/commands/find_pending_submissions.py index e7fa4c896..0eb88661a 100644 --- a/tdrs-backend/tdpservice/data_files/management/commands/find_pending_submissions.py +++ b/tdrs-backend/tdpservice/data_files/management/commands/find_pending_submissions.py @@ -46,4 +46,5 @@ def handle(self, *args, **options): stuck_files = get_stuck_files() - send_stuck_file_email(stuck_files, recipients) + if stuck_files.count() > 0: + send_stuck_file_email(stuck_files, recipients)