From dcad373ea04f7bcece5adbc8d2dab51a292d19ab Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Mon, 21 Oct 2024 11:05:48 +0200 Subject: [PATCH] Gracefully handle missing planner exit codes in . --- docs/news.rst | 2 +- downward/parsers/exitcode_parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/news.rst b/docs/news.rst index 253c9b6d1..f04311cb7 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -12,7 +12,7 @@ Lab Downward Lab ^^^^^^^^^^^^ -* No changes +* Gracefully handle missing planner exit codes in ``driver.log`` (Jendrik Seipp). v8.2 (2024-05-06) diff --git a/downward/parsers/exitcode_parser.py b/downward/parsers/exitcode_parser.py index 8233837de..936804cf0 100644 --- a/downward/parsers/exitcode_parser.py +++ b/downward/parsers/exitcode_parser.py @@ -28,7 +28,7 @@ def parse_exit_code(content, props): use_legacy_exit_codes = False break - exitcode = props["planner_exit_code"] + exitcode = props.get("planner_exit_code") outcome = outcomes.get_outcome(exitcode, use_legacy_exit_codes) props["error"] = outcome.msg if use_legacy_exit_codes: