diff --git a/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py b/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py index fde3966127..5d162f8414 100644 --- a/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py +++ b/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py @@ -19,7 +19,9 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where available return None diff --git a/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py b/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py index fb0555c384..f5bca3628f 100644 --- a/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py +++ b/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py @@ -13,7 +13,9 @@ def load_file(package_name, file_path): try: with open(absolute_file_path, "r") as file: return file.read() - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where available return None @@ -24,7 +26,9 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where available return None diff --git a/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py b/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py index 739b51d1d9..ff7fecc583 100644 --- a/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py +++ b/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py @@ -14,7 +14,9 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where available return None diff --git a/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py b/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py index 81ca3d77ff..65bdb9ef64 100644 --- a/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py +++ b/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py @@ -14,7 +14,9 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where available return None