Avoid NoMethodError on SSLCertificateNotVerified.
This commit is contained in:
parent
b59e2e5b3c
commit
a95da365bb
|
@ -50,7 +50,7 @@ if @verb
|
|||
end
|
||||
exit 0
|
||||
rescue RestClient::Exception => e
|
||||
puts e.response.body if e.respond_to? :response
|
||||
puts e.response.body if e.respond_to?(:response) && e.response
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue