Fix bug @latest_release for Github

This commit is contained in:
Xavier J 2016-09-19 16:59:07 +02:00
parent 5fb678e53b
commit d3ed39597e

View file

@ -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