Changeset a15b276d8c41…
Parent 9243721f7373…
by Benjamin Pollack
Changes to one file · Browse files at a15b276d8c41 Showing diff from parent 9243721f7373 Diff from another changeset...
@@ -14,6 +14,8 @@ set to send an email on error, it will continue to do so."""
def process_response(self, request, response):
+ if settings.DEBUG:
+ return response
if response.status_code == 404:
if settings.FOGBUGZ_REPORT_BROKEN_LINKS:
domain = request.get_host()
@@ -38,6 +40,8 @@ return response
def process_exception(self, request, exception):
+ if settings.DEBUG:
+ return
# Do not file 404 errors in FogBugz
if isinstance(exception, Http404):
return
|
Loading...