Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
279bb495
Commit
279bb495
authored
Mar 15, 2013
by
Sofia Papagiannaki
Browse files
Clear pithos InternalServerError response
Do not include in the InternalServerError response the actual error.
parent
509775bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/pithos/api/util.py
View file @
279bb495
...
...
@@ -1124,7 +1124,7 @@ def api_method(http_method=None, format_allowed=False, user_required=True,
return
render_fault
(
request
,
fault
)
except
BaseException
,
e
:
logger
.
exception
(
'Unexpected error: %s'
%
e
)
fault
=
InternalServerError
(
'Unexpected error
: %s'
%
e
)
fault
=
InternalServerError
(
'Unexpected error
'
)
return
render_fault
(
request
,
fault
)
finally
:
if
getattr
(
request
,
'backend'
,
None
)
is
not
None
:
...
...
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