Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion XRPLib/encoded_motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_default_encoded_motor(cls, index:int = 1):
)
motor = cls._DEFAULT_MOTOR_FOUR_INSTANCE
else:
return Exception("Invalid motor index")
raise Exception("Invalid motor index")
return motor

def __init__(self, motor, encoder: Encoder):
Expand Down
2 changes: 1 addition & 1 deletion XRPLib/servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_default_servo(cls, index:int):
cls._DEFAULT_SERVO_FOUR_INSTANCE = cls("SERVO_4")
servo = cls._DEFAULT_SERVO_FOUR_INSTANCE
else:
return Exception("Invalid servo index")
raise Exception("Invalid servo index")
return servo

def __init__(self, signal_pin: int|str):
Expand Down