From e91b2ede7dfb0ea74c0ac04d1367407d4ad4cf9b 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 b701072f..a1def858 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -83,7 +83,7 @@ class SessionsController < ApplicationController 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 end