fix f-string linting error

This commit is contained in:
Robert Kaussow 2023-05-28 22:56:10 +02:00
parent 7a2aac4d48
commit 665abf6d57
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class PrometheusSD:
config.config["logging"]["level"], config.config["logging"]["format"]
)
except ValueError as e:
self.log.sysexit_with_message(f"Can not set log level.\n{str(e)}")
self.log.sysexit_with_message(f"Can not set log level.\n{e!s}")
required = [("pve.server", config.config["pve"]["server"]),
("pve.user", config.config["pve"]["user"]),