Skip to content

Exceptions must inherit from BaseException #3

@m2-farzan

Description

@m2-farzan
Traceback (most recent call last):
  File "/app/main.py", line 7, in <module>
    robot.wheels.set_speed(0.5)
  File "/usr/local/lib/python3.8/dist-packages/cake/runtime/runtime.py", line 96, in wrapper
    raise exception
  File "/usr/local/lib/python3.8/dist-packages/cake/modules/hardware/wheels/Wheels.py", line 31, in set_speed
    self._raise_undefined_or_unimplemented()
  File "/usr/local/lib/python3.8/dist-packages/cake/modules/hardware/wheels/Wheels.py", line 52, in _raise_undefined_or_unimplemented
    raise UndefinedHardware
cake.exceptions.UndefinedHardware
Exception ignored in: <function Executor.__del__ at 0x7fc11dc40af0>
Traceback (most recent call last):
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/executors.py", line 229, in __del__
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/signals.py", line 39, in destroy
AttributeError: 'NoneType' object has no attribute 'rclpy_unregister_sigint_guard_condition'
Exception ignored in: <function SignalHandlerGuardCondition.__del__ at 0x7fc11dc1ed30>
Traceback (most recent call last):
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/signals.py", line 30, in __del__
TypeError: catching classes that do not inherit from BaseException is not allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions