[Docs] Improve malformed exception caused by backslash line continuations (#31694)
Signed-off-by: maang <maang_h@163.com> Signed-off-by: maang <55082429+maang-h@users.noreply.github.com> Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com> Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
co-authored by
Cyrus Leung
Wentao Ye
parent
ccb309a964
commit
d386ab1412
@@ -399,8 +399,7 @@ class FlexibleArgumentParser(ArgumentParser):
|
||||
index = args.index("--config")
|
||||
if index == len(args) - 1:
|
||||
raise ValueError(
|
||||
"No config file specified! \
|
||||
Please check your command-line arguments."
|
||||
"No config file specified! Please check your command-line arguments."
|
||||
)
|
||||
|
||||
file_path = args[index + 1]
|
||||
|
||||
Reference in New Issue
Block a user