Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
b172f788
Commit
b172f788
authored
Feb 04, 2020
by
Markus Scheidgen
Browse files
Fixed missing API errorhandler description.
parent
e3045f03
Pipeline
#68555
passed with stages
in 14 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/api/api.py
View file @
b172f788
...
...
@@ -29,4 +29,5 @@ api = Api(
# Otherwise the global app error handler won't be called.
@
api
.
errorhandler
(
Exception
)
def
errorhandler
(
error
):
'''When an internal server error is caused by an unexpected exception.'''
return
str
(
error
)
nomad/app/optimade/api.py
View file @
b172f788
...
...
@@ -50,4 +50,5 @@ api = Api(
# Otherwise the global app error handler won't be called.
@
api
.
errorhandler
(
Exception
)
def
errorhandler
(
error
):
'''When an internal server error is caused by an unexpected exception.'''
return
str
(
error
)
Write
Preview
Supports
Markdown
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