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
MMCV
Commits
123bc9b0
Unverified
Commit
123bc9b0
authored
Jul 14, 2020
by
su
Committed by
GitHub
Jul 14, 2020
Browse files
[feat]add error log in config validate check (#414)
parent
6cf33737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmcv/utils/config.py
mmcv/utils/config.py
+2
-2
No files found.
mmcv/utils/config.py
View file @
123bc9b0
...
@@ -87,9 +87,9 @@ class Config:
...
@@ -87,9 +87,9 @@ class Config:
content
=
f
.
read
()
content
=
f
.
read
()
try
:
try
:
ast
.
parse
(
content
)
ast
.
parse
(
content
)
except
SyntaxError
:
except
SyntaxError
as
e
:
raise
SyntaxError
(
'There are syntax errors in config '
raise
SyntaxError
(
'There are syntax errors in config '
f
'file
{
filename
}
'
)
f
'file
{
filename
}
:
{
e
}
'
)
@
staticmethod
@
staticmethod
def
_substitute_predefined_vars
(
filename
,
temp_config_name
):
def
_substitute_predefined_vars
(
filename
,
temp_config_name
):
...
...
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