check_last_exception()
  • 1 Minute to read

check_last_exception()


Article summary

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

Reference

Arguments

None

Return

None

Exceptions

See the complete list of arms exceptions.

Usage Example

...

class RayaApplication(RayaApplicationBase):

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

Was this article helpful?