renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
182 stars 82 forks source link

Fix NameError by initializing message_str #356

Open veronikaria opened 1 month ago

veronikaria commented 1 month ago

Fix NameError by initializing message_str

The script was failing with a NameError due to the use of an uninitialized variable message_str. This occurs when none of the conditions for setting message_str are met, leading to a scenario where the variable is referenced before assignment.

To prevent this error and ensure that message_str is always defined, I have added an initialization of message_str to an empty string at the beginning of the script.

This change ensures that the script can run without encountering a NameError, even if the conditions for setting message_str are not met.

michaelthomasj commented 1 month ago

Hi @veronikaria , thank you for identifying that issue and the MR for the fix. This will be in our next update scheduled in June.