Skip to content

Commit

Permalink
Catch EBADF when watch_stream fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Zellner committed Dec 31, 2017
1 parent 8933375 commit bccb0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubeclient/watch_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def each
yield(@format == :json ? WatchNotice.new(JSON.parse(line)) : line.chomp)
end
end
rescue IOError
rescue IOError, Errno::EBADF
raise unless @finished
end

Expand Down

0 comments on commit bccb0dd

Please sign in to comment.