Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

Commit

Permalink
show a minimal response body when discreet mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbranagan committed May 31, 2012
1 parent 1372cb3 commit 46dcafa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/exceptional/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ def __call__(self, environ, start_response):
error = "%s\nthen submission to getexceptional failed:\n%s" % (error, error2)
response.status_int = 500

if not self.discreet:
if self.discreet:
response.body = "An error has occured."
else:
response.body = "An error has occured; trace follows.\n%s" % error


return response(environ, start_response)


Expand Down

0 comments on commit 46dcafa

Please sign in to comment.