222_Annual_reports #251

Merged
mpeltriaux merged 3 commits from 222_Annual_reports into master 2022-11-25 09:18:05 +01:00
Showing only changes of commit 415089084e - Show all commits

View File

@ -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}'")