From dcebd2afcebf60a228a80045e9ef5712cdf69a08 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 8 Oct 2023 14:02:52 +0200 Subject: [PATCH] Prevent an exception if score cannot be sent for survey --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 79c8dacc5..2ee5d593a 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -78,7 +78,7 @@ def redirect_to_survey lti_parameters = params.slice(*Lti::SESSION_PARAMETERS).permit!.to_h provider = build_tool_provider(consumer: current_user.consumer, parameters: lti_parameters) provider.post_replace_result!(1.0) - rescue IMS::LTI::XMLParseError, Net::OpenTimeout, Net::ReadTimeout, Errno::ECONNRESET, SocketError, EOFError + rescue IMS::LTI::InvalidLTIConfigError, IMS::LTI::XMLParseError, Net::OpenTimeout, Net::ReadTimeout, Errno::ECONNRESET, SocketError, EOFError # We don't do anything here because it is only a bonus point and we want the users to do the survey end