整合子模块
This commit is contained in:
@@ -16,7 +16,8 @@ class ConfigFile:
|
||||
with open(self.path, 'r') as f:
|
||||
try:
|
||||
self.data = toml.load(f)
|
||||
except toml.TomlDecodeError:
|
||||
except toml.TomlDecodeError as e:
|
||||
print(f"{e}")
|
||||
self.data = {}
|
||||
|
||||
def modify(self, key: str, value: typing.Any):
|
||||
|
||||
Reference in New Issue
Block a user