Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diapotb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remote Modules
diapotb
Commits
808b9f75
Commit
808b9f75
authored
3 years ago
by
Gaëlle USSEGLIO
Browse files
Options
Downloads
Patches
Plain Diff
STYLE : Add the exception message when json reading raises an error
parent
32e32184
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!52
Merge for v1.1.0
,
!47
TSX/PAZ/TDX processing in python_src
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_src/diapotb/ConfigFile.py
+3
-2
3 additions, 2 deletions
python_src/diapotb/ConfigFile.py
with
3 additions
and
2 deletions
python_src/diapotb/ConfigFile.py
+
3
−
2
View file @
808b9f75
...
...
@@ -210,8 +210,9 @@ class ConfigFile():
self
.
_data_config
=
json
.
load
(
f
)
except
Exception
as
err
:
logger
.
critical
(
"
Impossible to read or load JSON configuration file : {err}. Check its path and content.
"
\
.
format
(
err
=
self
.
_config_file
))
logger
.
critical
(
"
Impossible to read or load JSON configuration file : {name}.
"
\
"
Check its path and content. For your information, exception is
\n
: {err}
"
\
.
format
(
name
=
self
.
_config_file
,
err
=
err
))
quit
()
self
.
_validate_json
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment