mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 01:56:03 -04:00
Remove try catch, it was only logging the exception.
This commit is contained in:
@@ -111,13 +111,7 @@ def delete_invitations():
|
|||||||
@notify_celery.task(name='timeout-sending-notifications')
|
@notify_celery.task(name='timeout-sending-notifications')
|
||||||
@statsd(namespace="tasks")
|
@statsd(namespace="tasks")
|
||||||
def timeout_notifications():
|
def timeout_notifications():
|
||||||
try:
|
updated = dao_timeout_notifications(current_app.config.get('SENDING_NOTIFICATIONS_TIMEOUT_PERIOD'))
|
||||||
updated = dao_timeout_notifications(current_app.config.get('SENDING_NOTIFICATIONS_TIMEOUT_PERIOD'))
|
if updated:
|
||||||
if updated:
|
current_app.logger.info(
|
||||||
current_app.logger.info(
|
"Timeout period reached for {} notifications, status has been updated.".format(updated))
|
||||||
"Timeout period reached for {} notifications, status has been updated.".format(updated))
|
|
||||||
except Exception as e:
|
|
||||||
current_app.logger.exception(e)
|
|
||||||
current_app.logger.error(
|
|
||||||
"Exception raised trying to timeout notification skipping notification update."
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user