Skip to content

Commit c426217

Browse files
committed
Remove outdated references to SUPPORTED_ACTIONS
1 parent 943a321 commit c426217

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

benchbot_api/benchbot.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -409,19 +409,6 @@ def step(self, action, **action_kwargs):
409409
"""
410410
# Perform the requested action if possible
411411
if action is not None:
412-
# Detect unsupported actions
413-
if action not in BenchBot.SUPPORTED_ACTIONS:
414-
raise ValueError(
415-
"Action '%s' is not a valid action (valid actions are: %s)."
416-
% (action, ', '.join(BenchBot.SUPPORTED_ACTIONS.keys())))
417-
else:
418-
missing_keys = (set(BenchBot.SUPPORTED_ACTIONS[action]) -
419-
set(action_kwargs.keys()))
420-
if missing_keys:
421-
raise ValueError(
422-
"Action '%s' requires argument '%s' which was not "
423-
"provided." % (action, missing_keys.pop()))
424-
425412
# Detect actions unavailable due to robot state
426413
if action not in self.actions:
427414
raise ValueError(

0 commit comments

Comments
 (0)