Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspeyrucain committed Jan 16, 2025
1 parent 6b189e4 commit c1f293a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion joy_teleop/joy_teleop/joy_teleop.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def __init__(self, name: str, config: typing.Dict[str, typing.Any],

if len(self.buttons) == 0 and len(self.axes) == 0 and len(self.axes_negative) == 0:
raise JoyTeleopException(
"No buttons, axes or negative_axes configured for command '{}'".format(name)
"No buttons, axes or negative_axes configured for command '{}'"
.format(name)
)

# Used to short-circuit the run command if there aren't enough buttons in the message.
Expand Down Expand Up @@ -143,6 +144,7 @@ def update_active_from_buttons_and_axes(self, joy_state: sensor_msgs.msg.Joy) ->
# like (0, 10), but the length of the joystick buttons is only 1. Ignore these.
pass


class JoyTeleopTopicCommand(JoyTeleopCommand):

def __init__(self, name: str, config: typing.Dict[str, typing.Any], node: Node) -> None:
Expand Down

0 comments on commit c1f293a

Please sign in to comment.