From db6814bedff6233bd6a606ce0f2880ecb51b36c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Thu, 19 May 2022 17:48:46 +0100 Subject: [PATCH] Avoid NoMethodError when Sentry is not initialised --- app/controllers/form_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/form_controller.rb b/app/controllers/form_controller.rb index 537c94701..f95f84667 100644 --- a/app/controllers/form_controller.rb +++ b/app/controllers/form_controller.rb @@ -24,7 +24,7 @@ class FormController < ApplicationController else render_not_found end - transaction.finish + transaction.finish if transaction end def check_answers