From 619b03b145ec977c00b31132eaaa42501c717d0f Mon Sep 17 00:00:00 2001 From: Brendan Burns <5751682+brendandburns@users.noreply.github.com> Date: Sun, 27 Oct 2024 01:04:21 +0000 Subject: [PATCH] Switch to get for Dict lookup to prevent KeyError --- moveit_configs_utils/moveit_configs_utils/launches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moveit_configs_utils/moveit_configs_utils/launches.py b/moveit_configs_utils/moveit_configs_utils/launches.py index a423395000..142193de44 100644 --- a/moveit_configs_utils/moveit_configs_utils/launches.py +++ b/moveit_configs_utils/moveit_configs_utils/launches.py @@ -249,7 +249,7 @@ def generate_move_group_launch(moveit_config): parameters=move_group_params, extra_debug_args=["--debug"], # Set the display variable, in case OpenGL code is used internally - additional_env={"DISPLAY": os.environ["DISPLAY"]}, + additional_env={"DISPLAY": os.environ.get("DISPLAY", "")}, ) return ld