From fa299f412aa71072c47d05c6b79740b0912c7f97 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 11 Jan 2023 18:12:18 -0500 Subject: [PATCH] Precommit --- src/spiffworkflow_backend/services/error_handling_service.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spiffworkflow_backend/services/error_handling_service.py b/src/spiffworkflow_backend/services/error_handling_service.py index 5d6346d7..b700e781 100644 --- a/src/spiffworkflow_backend/services/error_handling_service.py +++ b/src/spiffworkflow_backend/services/error_handling_service.py @@ -4,7 +4,7 @@ import json from flask import g from flask import current_app from flask.wrappers import Response -from typing import Any +# from typing import Any from typing import List from typing import Union @@ -18,7 +18,7 @@ from spiffworkflow_backend.models.message_triggerable_process_model import ( from spiffworkflow_backend.models.process_instance import ProcessInstanceModel from spiffworkflow_backend.models.process_instance import ProcessInstanceModelSchema from spiffworkflow_backend.models.process_instance import ProcessInstanceStatus -from spiffworkflow_backend.services.email_service import EmailService +# from spiffworkflow_backend.services.email_service import EmailService from spiffworkflow_backend.services.message_service import MessageService from spiffworkflow_backend.services.process_instance_processor import ( ProcessInstanceProcessor, @@ -77,6 +77,7 @@ class ErrorHandlingService: error: Union[ApiError, Exception], recipients: List, ) -> Response: + """Handle_system_notification.""" message_payload = { 'my_var': 'my_value', 'error': error.__repr__(),