Skip to content

Commit

Permalink
Minor fix for null returning commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero committed Sep 26, 2024
1 parent 2456258 commit 435f9b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lean/components/docker/docker_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ def read_from_file(self, docker_container_name: str, docker_file: Path, interval
if success:
result = loads(output)
success = result["Success"]
if not success:
if success is False:
error_message = "Rejected by Lean. Possible arguments error. Please check your logs and try again."
else:
success = True
if not success and not error_message:
error_message = f"Failed to read result from docker file {docker_file.name} within {timeout} seconds. This could be due to an action taking longer than expected. Run 'docker logs {docker_container_name}' for more information."

Expand Down

0 comments on commit 435f9b1

Please sign in to comment.