check_last_exception()
  • 1 Minute to read

check_last_exception()


Article summary

Check if motion command has exceptions. If an exception occurs, it is raised.

Reference

Arguments

None

Return

None

Exceptions

See the complete list of motion exceptions.

Usage Example

...

class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.motion = await self.enable_controller('motion')
        ....
        
    async def loop(self):
     ....
        self.motion.check_last_exception() # Raise if exception happened
      ...
      
    async def finish(self):
      ...

Was this article helpful?