Skip to content

Commit 318ed98

Browse files
committed
load_tools: fix raised error
1 parent 0959f77 commit 318ed98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example_parallel_robots/python/example_parallel_robots/loader_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def load(robot_name, free_flyer=None, only_legs=None):
324324
collision_model (Pinocchio.RobotCollisionModel): Pinocchio robot collision model.
325325
"""
326326
if robot_name not in ROBOTS.keys():
327-
raise (
328-
f"Name {robot_name} does not exists.\n Call method 'models' to see the list of available models"
327+
raise ValueError(
328+
f"Robot {robot_name} does not exist.\n Call 'models()' to see the list of available models"
329329
)
330330
robot = ROBOTS[robot_name]
331331
if robot.urdf_file is not None:

0 commit comments

Comments
 (0)