Skip to content

Commit dd7853c

Browse files
committed
Check line lenght before assuming there's a first character.
- Legacy-Id: 14619
1 parent 6d1ac04 commit dd7853c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def text_to_dict(t):
153153
items = []
154154
# unfold folded lines
155155
for l in lines:
156-
if l[0].isspace():
156+
if len(l) and l[0].isspace():
157157
if items:
158158
items[-1] += l
159159
else:

0 commit comments

Comments
 (0)