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.