Change default of raise_exception for execute_command

This commit is contained in:
Sebastian Serth
2021-10-30 01:13:32 +02:00
parent 4f1a7cde27
commit 1609bd2e0e
4 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@ class ExecutionEnvironment < ApplicationRecord
def working_docker_image?
runner = Runner.for(author, self)
output = runner.execute_command(VALIDATION_COMMAND, raise_exception: true)
output = runner.execute_command(VALIDATION_COMMAND)
errors.add(:docker_image, "error: #{output[:stderr]}") if output[:stderr].present?
rescue Runner::Error => e
errors.add(:docker_image, "error: #{e}")