Skip to content

Commit

Permalink
Prevent an exception if score cannot be sent for survey
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Oct 8, 2023
1 parent d2084d2 commit dcebd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dcebd2a

Please sign in to comment.