lib/zold/wts.rb in zold-ruby-sdk-0.2.0 vs lib/zold/wts.rb in zold-ruby-sdk-0.2.1

- old
+ new

@@ -214,10 +214,10 @@ raise 'Job ID is not returned, for some reason' if job.nil? job end def clean(http) - error = http.headers['X-Zold-Error'] + error = (http.headers || {})['X-Zold-Error'] raise error unless error.nil? unless http.code == 200 || http.code == 302 @log.debug(http.body) raise "Unexpected response code #{http.code}" end