lib/overcommit/subprocess.rb in overcommit-0.41.0 vs lib/overcommit/subprocess.rb in overcommit-0.42.0
- old
+ new
@@ -34,10 +34,10 @@
process.duplex = true if options[:input] # Make stdin available if needed
process.start
if options[:input]
begin
process.io.stdin.puts(options[:input])
- rescue # rubocop:disable Lint/HandleExceptions
+ rescue StandardError # rubocop:disable Lint/HandleExceptions
# Silently ignore if the standard input stream of the spawned
# process is closed before we get a chance to write to it. This
# happens on JRuby a lot.
ensure
process.io.stdin.close