Skip to content

Commit 7ec2c60

Browse files
committed
Correct display of text in stacktraces
1 parent 679c321 commit 7ec2c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def tidy_stacktrace(stack):
3636
continue
3737
if socketserver_path in s_path:
3838
continue
39-
trace.append((path, line_no, func_name, text))
39+
trace.append((path, line_no, func_name, (''.join(text)).strip()))
4040
return trace
4141

4242
def get_template_info(source, context_lines=3):

0 commit comments

Comments
 (0)