Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
.

.
  • Loading branch information
mosfet80 committed Sep 8, 2024
1 parent 41d920d commit 3416983
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A launch file that starts a Jupyter notebook server and nodes that support motion planning with the MoveIt Python library.
"""

import os
import yaml
from launch import LaunchDescription
Expand All @@ -18,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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A launch file for running the motion planning python api tutorial
"""

import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 3416983

Please sign in to comment.