Skip to content

Commit

Permalink
Switch to get for Dict lookup to prevent KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 27, 2024
1 parent b05ab22 commit 619b03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_configs_utils/moveit_configs_utils/launches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 619b03b

Please sign in to comment.