diff --git a/konova/management/commands/generate_report.py b/konova/management/commands/generate_report.py index be0531ff..51091871 100644 --- a/konova/management/commands/generate_report.py +++ b/konova/management/commands/generate_report.py @@ -131,4 +131,7 @@ class Command(BaseKonovaCommand): ] ) success = mail.send() - self._write_success(f"Mails with zip as attachment sent to {admin_mails}.") + if success == 1: + self._write_success(f"Mails with zip as attachment sent to {admin_mails}.") + else: + self._write_error(f"Something went wrong during mail sending. Returned sending code was '{success}'")