In the latest main, this code:
import traceback
try:
print(5/0)
except Exception as ex:
traceback.print_exception(ex, ex, ex.__traceback__)
Results in:
code.py output:
Traceback (most recent call last):
File "code.py", line 5, in <module>
TypeError: tb must be of type traceback
While this code:
import traceback
try:
print(5/0)
except Exception as ex:
print(ex.__traceback__)
Just hangs, forcing a reset.
Tested on Raspberry pico. Seems to come from #5562
In the latest main, this code:
Results in:
While this code:
Just hangs, forcing a reset.
Tested on Raspberry pico. Seems to come from #5562