mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Fix on previous commit
This commit is contained in:
@@ -62,7 +62,7 @@ def pygmentize(value):
|
||||
pre_context, context_lines, post_context = _split(lines, lengths)
|
||||
|
||||
value['pre_context'] = [mark_safe(s) for s in pre_context]
|
||||
value['context_line'] = mark_safe(context_lines[0])
|
||||
value['context_line'] = mark_safe(context_lines[0] if len(context_lines) > 0 else None)
|
||||
value['post_context'] = [mark_safe(s) for s in post_context]
|
||||
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user