Merge branch 'fix/idf_tools_fstrings_v4.4' into 'release/v4.4'

Tools: Don't use f-string in idf_tools.py

See merge request espressif/esp-idf!17990
This commit is contained in:
Roland Dobai 2022-05-04 22:30:49 +08:00
commit e12b3c5644

View File

@ -380,7 +380,7 @@ def rename_with_retry(path_from, path_to): # type: (str, str) -> None
os.rename(path_from, path_to)
return
except OSError:
msg = f'Rename {path_from} to {path_to} failed'
msg = 'Rename {} to {} failed'.format(path_from, path_to)
if retry == retry_count - 1:
fatal(msg + '. Antivirus software might be causing this. Disabling it temporarily could solve the issue.')
raise