errors: Remove build_request_repr logic.

This interface is no longer supported in Django 1.10.
This commit is contained in:
Tim Abbott 2017-01-29 14:04:06 -08:00
parent dea281557d
commit 7e0ce22808
1 changed files with 1 additions and 11 deletions

View File

@ -3,7 +3,7 @@ from __future__ import absolute_import
from typing import Any
from django.views.debug import SafeExceptionReporterFilter
from django.http import HttpRequest, build_request_repr
from django.http import HttpRequest
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
@ -16,13 +16,3 @@ class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
if var in filtered_post:
filtered_post[var] = '**********'
return filtered_post
def get_request_repr(self, request):
# type: (HttpRequest) -> str
if request is None:
return repr(None)
else:
return build_request_repr(request,
POST_override=self.get_post_parameters(request),
COOKIES_override="**********",
META_override="**********")