Skip to content

Exceptions thrown in a function scheduled with run_every are not scrolled on the display #94

@microbit-carlos

Description

@microbit-carlos

For example, with this programme:

from microbit import *

@run_every(s=1)
def foo():
    raise Exception

while True:
    if button_a.is_pressed():
        foo()
    sleep(200)

An exception is thrown every second, which can be seen on the serial output, but nothing is scrolled on the micro:bit display.

When button A is pressed and the foo() function is called directly the exception is scrolled on the display correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions