Skip to content

Commit

Permalink
[CodeStyle][B016] Clear raise (#52118)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil authored Mar 25, 2023
1 parent 3dbc0e4 commit bf1771d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ select = [
"B013",
"B014",
# "B015",
# "B016",
"B016",
# "B017",
"B018",
"B019",
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/distributed/launch/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def process_args(ctx):
if ctx.args.ips:
ips = ctx.args.ips.split(',')
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):
Expand Down

0 comments on commit bf1771d

Please sign in to comment.