lib/zold/node/farmers.rb in zold-0.31.5 vs lib/zold/node/farmers.rb in zold-0.31.6

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018-2023 Zerocracy, Inc. +# Copyright (c) 2018-2023 Zerocracy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -108,13 +108,11 @@ stdin.close buffer = +'' loop do begin buffer << stdout.read_nonblock(16 * 1024) - # rubocop:disable Lint/HandleExceptions rescue IO::WaitReadable - # rubocop:enable Lint/HandleExceptions - # nothing to do here + # nothing to do here rescue StandardError => e @log.error(buffer) raise e end break if buffer.end_with?("\n") && thr.value.to_i.zero?