From aab0b24d1cda90c8ec930195b2bc765cfb55207d Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Tue, 2 Apr 2024 11:50:12 +0300 Subject: [PATCH] Update pylib/gyp/generator/compile_commands_json.py Co-authored-by: Christian Clauss --- pylib/gyp/generator/compile_commands_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/gyp/generator/compile_commands_json.py b/pylib/gyp/generator/compile_commands_json.py index f84c981d..5d7f14da 100644 --- a/pylib/gyp/generator/compile_commands_json.py +++ b/pylib/gyp/generator/compile_commands_json.py @@ -112,8 +112,8 @@ def GenerateOutput(target_list, target_dicts, data, params): try: # generator_output can be `None` on Windows machines, or even not # defined in other cases - output_dir = params["options"].generator_output - except (AttributeError, KeyError): + output_dir = params.get("options").generator_output + except AttributeError: pass output_dir = output_dir or params["generator_flags"].get("output_dir", "out") for configuration_name, commands in per_config_commands.items():