未验证 提交 bf1771d0 编写于 作者: G gouzil 提交者: GitHub

[CodeStyle][B016] Clear raise (#52118)

上级 3dbc0e46
...@@ -98,7 +98,7 @@ select = [ ...@@ -98,7 +98,7 @@ select = [
"B013", "B013",
"B014", "B014",
# "B015", # "B015",
# "B016", "B016",
# "B017", # "B017",
"B018", "B018",
"B019", "B019",
......
...@@ -39,7 +39,7 @@ def process_args(ctx): ...@@ -39,7 +39,7 @@ def process_args(ctx):
if ctx.args.ips: if ctx.args.ips:
ips = ctx.args.ips.split(',') ips = ctx.args.ips.split(',')
if '127.0.0.1' in ips and len(ips) != 1: if '127.0.0.1' in ips and len(ips) != 1:
raise "127.0.0.1 in ips is not allowed in multi-nodes." raise ValueError("127.0.0.1 in ips is not allowed in multi-nodes.")
def collective_compatible(ctx): def collective_compatible(ctx):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册