lib/enceladus/requester.rb in enceladus-0.0.7 vs lib/enceladus/requester.rb in enceladus-0.0.8

- old
+ new

@@ -49,9 +49,11 @@ # So, this method is responsible for handling RestClient::Exception, parsing the error message to finally raise Enceladus::Exception::Api. # def perform_request(&block) begin block.call + rescue RestClient::SSLCertificateNotVerified + raise rescue RestClient::Exception => e message = ["The Movie DB API Exception:"] message << "@message=\"#{e.message}\"" JSON.parse(e.response).each do |k,v| \ No newline at end of file