From d3ed39597ebb299172d94f04c41148eb232ffe9b Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 19 Sep 2016 16:59:07 +0200 Subject: [PATCH] Fix bug @latest_release for Github --- app/controllers/root_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 8ea836b49..e180f1286 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -14,7 +14,11 @@ class RootController < ApplicationController redirect_to administrations_path else - @latest_release = Github::Releases.latest + begin + @latest_release = Github::Releases.latest + rescue OpenSSL::SSL::SSLErrorWaitReadable + @latest_release = nil + end render 'landing' end end