File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- from django .utils .encoding import force_str
1
+ from django .utils .encoding import DjangoUnicodeDecodeError , force_str
2
2
from django .utils .translation import gettext_lazy as _
3
3
from django .views .debug import get_default_exception_reporter_filter
4
- from django .utils .encoding import DjangoUnicodeDecodeError
5
4
6
5
from debug_toolbar .panels import Panel
7
6
@@ -25,12 +24,11 @@ def title(self):
25
24
)
26
25
27
26
def generate_stats (self , request , response ):
28
-
29
27
def catch_force_errors (force_function , value ):
30
28
try :
31
29
return force_function (value )
32
30
except DjangoUnicodeDecodeError :
33
- return ' Debug toolbar was unable to parse value'
31
+ return " Debug toolbar was unable to parse value"
34
32
35
33
self .record_stats (
36
34
{
You can’t perform that action at this time.
0 commit comments