Use f-strings where possible (#1740)

This commit is contained in:
Franck Nijhof
2020-05-22 13:41:14 +02:00
committed by GitHub
parent f0d46e8671
commit 630d85ec78
11 changed files with 11 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ class APICoreDNS(CoreSysAttributes):
version = body.get(ATTR_VERSION, self.sys_plugins.dns.latest_version)
if version == self.sys_plugins.dns.version:
raise APIError("Version {} is already in use".format(version))
raise APIError(f"Version {version} is already in use")
await asyncio.shield(self.sys_plugins.dns.update(version))
@api_process_raw(CONTENT_TYPE_BINARY)