scripts: serie_update.py: support master and main branches

https://github.com/STMicroelectronics/STM32CubeWL.git
has main branch instead of master.
So if master doesn't exist use main branch.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 file changed