summaryrefslogtreecommitdiff
path: root/lib/chef/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r--lib/chef/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb
index 9cd55f18dd..a3673ce281 100644
--- a/lib/chef/http.rb
+++ b/lib/chef/http.rb
@@ -406,7 +406,7 @@ class Chef
tf.close
tf
rescue Exception
- tf.close!
+ tf.close! if tf
raise
end