We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a6f27f + 9524403 commit b4e8af0Copy full SHA for b4e8af0
1 file changed
lib/ruby_odata/service.rb
@@ -374,7 +374,7 @@ def handle_collection_result(result)
374
375
# Handles errors from the OData service
376
def handle_exception(e)
377
- raise e unless defined? e.response
+ raise e unless defined?(e.response) && e.response != nil
378
379
code = e.response[:status]
380
error = Nokogiri::XML(e.response[:body])
0 commit comments