Skip to content

Commit

Permalink
Rescue in strip_output if given argument is not valid UTF-8 byte sequ…
Browse files Browse the repository at this point in the history
…ence.
  • Loading branch information
hermanzdosilovic committed Feb 15, 2019
1 parent 350ff3a commit 4c994c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/isolate_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,7 @@ def determine_status
def strip_output(output)
return nil unless output
output.split("\n").collect(&:rstrip).join("\n").rstrip
rescue ArgumentError
return output
end
end

0 comments on commit 4c994c6

Please sign in to comment.