Improve string formatting v9 (#34050)
* Improve string formatting v9 * Address review comments
This commit is contained in:
parent
5aca16ef01
commit
b2af1de273
21 changed files with 47 additions and 72 deletions
|
@ -419,9 +419,7 @@ def _load_file(
|
|||
parts = []
|
||||
for part in path.split("."):
|
||||
parts.append(part)
|
||||
white_listed_errors.append(
|
||||
"No module named '{}'".format(".".join(parts))
|
||||
)
|
||||
white_listed_errors.append(f"No module named '{'.'.join(parts)}'")
|
||||
|
||||
if str(err) not in white_listed_errors:
|
||||
_LOGGER.exception(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue