mirror of
https://github.com/apache/nuttx.git
synced 2026-11-01 20:39:08 +08:00
Python warns about return statements inside finally blocks because they can suppress pending exceptions. Move the returns after the try/finally and try/except bodies so normal return values stay the same while unexpected exceptions are no longer swallowed. Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>