Commit 1e78a1d5 authored by Łukasz Nowak's avatar Łukasz Nowak

Hide more errors from client.

parent 3d598aa0
...@@ -73,7 +73,7 @@ def convertToREST(function): ...@@ -73,7 +73,7 @@ def convertToREST(function):
""" """
try: try:
retval = function(self, *args, **kwd) retval = function(self, *args, **kwd)
except ValueError, log: except (ValueError, AttributeError), log:
LOG('SlapTool', INFO, 'Converting ValueError to NotFound, real error:', LOG('SlapTool', INFO, 'Converting ValueError to NotFound, real error:',
error=True) error=True)
raise NotFound(log) raise NotFound(log)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment