Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: save missing version_series_id error #3641

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
AhjoToken,
AhjoTokenExpiredException,
)
from applications.services.ahjo_error_writer import AhjoErrorWriter, AhjoFormattedError
from applications.services.ahjo_integration import (
delete_application_in_ahjo,
get_decision_details_from_ahjo,
Expand Down Expand Up @@ -154,6 +155,11 @@ def run_requests(
except tuple(exception_messages.keys()) as e:
error_text = f"{exception_messages[type(e)]} {application.application_number}: {e}"
LOGGER.error(error_text)
AhjoErrorWriter.write_to_validation_error(
AhjoFormattedError(
application=application, message_to_handler=error_text
)
)
failed_applications.append(application)
self._handle_failed_request(
counter, application, ahjo_request_type, error_text
Expand Down
Loading