Fix bug @latest_release for Github
This commit is contained in:
parent
5fb678e53b
commit
d3ed39597e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue