[Update] 修改配置文件判断

pull/2404/head
ibuler 2019-02-18 15:09:02 +08:00
parent c4af6fa72d
commit 2737675c36
1 changed files with 4 additions and 0 deletions

View File

@ -282,6 +282,10 @@ class Config(dict):
if value is not None:
if value.isdigit():
value = int(value)
elif value.lower() == 'false':
value = False
elif value.lower() == 'true':
value = True
return value
return self.defaults.get(item)