-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Description
When an error occurs on an event handler, the exception in caught and ignored by the scheduler:
For example:
Traceback (most recent call last):
File "lv_utils.py", line 117, in task_handler
File "<string>", line 88, in event_cb
File "<string>", line 124, in draw
AttributeError: 'module' object has no attribute 'draw_polygon'
To fix this, consider catching exceptions on the event loop task_handler and exit with sys.exit(1) if its available.
lv_binding_micropython/lib/lv_utils.py
Lines 116 to 119 in 620a3de
| def task_handler(self, _): | |
| lv.task_handler() | |
| if self.refresh_cb: self.refresh_cb() | |
| self.scheduled -= 1 |
embeddedt
Metadata
Metadata
Assignees
Labels
No labels