Skip to content

Commit 9c8b935

Browse files
committed
* get config 如果没有参数时,还是返回异常信息
1 parent fe47042 commit 9c8b935

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# 更新日志
22

3-
## JadeV2.3.5 - 2025-02-11
4-
* 删除jade_tools中的main函数
3+
## JadeV2.3.6 - 2025-02-26
4+
* get config 如果没有参数时,还是返回异常信息
55
---
66

77
<details onclose>
88
<summary>查看更多更新日志</summary>
99

10+
## JadeV2.3.5 - 2025-02-11
11+
* 删除jade_tools中的main函数
12+
---
13+
1014
## JadeV2.3.4 - 2025-02-11
1115
* 新增exception详情信息获取
1216
---

jade/jade_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def getConfig(config, section, configname, default_value=None, config_dic=None,
8787
JadeLog.ERROR("读取{}参数异常,请检查参数是否正常".format(configname))
8888
else:
8989
pass
90-
return default_value
90+
if default_value is None:
91+
raise e
92+
else:
93+
return default_value
9194

9295

9396
def getBoolConfig(config, section, configname):

0 commit comments

Comments
 (0)