Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
61ac844f
"docs/vscode:/vscode.git/clone" did not exist on "3711811b1d2956e83e626c72f0e1607f2dfbc8fb"
Unverified
Commit
61ac844f
authored
Dec 21, 2020
by
Anon-Artist
Committed by
GitHub
Dec 21, 2020
Browse files
Update common_utils.py
parent
fbbe14d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/tools/nnictl/common_utils.py
nni/tools/nnictl/common_utils.py
+1
-1
No files found.
nni/tools/nnictl/common_utils.py
View file @
61ac844f
...
...
@@ -21,7 +21,7 @@ def get_yml_content(file_path):
'''Load yaml file content'''
try
:
with
open
(
file_path
,
'r'
)
as
file
:
return
yaml
.
load
(
file
,
Loader
=
yaml
.
Loader
)
return
yaml
.
load
(
file
,
Loader
=
yaml
.
Safe
Loader
)
except
yaml
.
scanner
.
ScannerError
as
err
:
print_error
(
'yaml file format error!'
)
print_error
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment