Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
080ce380
Commit
080ce380
authored
Feb 23, 2018
by
Daniele Venzano
Browse files
Fix wrong status code in ZApp validation API
parent
0efa4f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_api/api_endpoint.py
View file @
080ce380
...
...
@@ -68,7 +68,7 @@ class APIEndpoint:
try
:
zoe_lib
.
applications
.
app_validate
(
application_description
)
except
zoe_lib
.
exceptions
.
InvalidApplicationDescription
as
e
:
raise
zoe_api
.
exceptions
.
ZoeException
(
'Invalid application description: '
+
e
.
message
)
raise
zoe_api
.
exceptions
.
Zoe
RestAPI
Exception
(
'Invalid application description: '
+
e
.
message
)
def
_check_quota
(
self
,
user
:
zoe_lib
.
state
.
User
,
application_description
):
# pylint: disable=unused-argument
"""Check quota for given user and execution."""
...
...
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