mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Call Deskpro ticket when there is an error
This commit is contained in:
@@ -517,6 +517,13 @@ def letter_raise_alert_if_no_ack_file_for_zip():
|
||||
zip_not_today.append(s[0])
|
||||
|
||||
if zip_file_list:
|
||||
deskpro_client.create_ticket(
|
||||
subject="Letter acknowledge error",
|
||||
message="Letter acknowledgement file do not contains all zip files sent: {}".format(datetime.utcnow()
|
||||
.strftime('%Y-%m-%d')),
|
||||
ticket_type='alert'
|
||||
)
|
||||
|
||||
raise NoAckFileReceived(message=zip_file_list)
|
||||
|
||||
if zip_not_today:
|
||||
|
||||
Reference in New Issue
Block a user