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

ESP-IDF v4.4 supports Python 3.6 or newer. F-strings are available there
but idf_tools.py can fail if run with older Pythons because the Python
version check is done later.

Closes https://github.com/espressif/esp-idf/issues/8890
This commit is contained in:
Roland Dobai
2022-05-04 11:57:02 +02:00
parent a6a245f75f
commit 7b33262d26

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