提交 8f336639 authored 作者: Michael Osthege's avatar Michael Osthege 提交者: Michael Osthege

Add missing f-string in configparser exception

上级 28a7199a
......@@ -365,7 +365,7 @@ class ConfigParam:
def __set__(self, cls, val):
if not self.mutable and hasattr(self, "val"):
raise Exception(
"Can't change the value of {self.name} config parameter after initialization!"
f"Can't change the value of {self.name} config parameter after initialization!"
)
applied = self.apply(val)
self.validate(applied)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论