We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a3895 commit e0d1c0bCopy full SHA for e0d1c0b
1 file changed
ietf/submit/checkers.py
@@ -140,7 +140,10 @@ def check_file_txt(self, path):
140
for line in error_lines:
141
fn, lnum, msg = line.split(':', 2)
142
lnum = int(lnum)
143
- line = text[lnum-1].rstrip()
+ if fn == model and (lnum-1) in range(len(text)):
144
+ line = text[lnum-1].rstrip()
145
+ else:
146
+ line = None
147
items.append((lnum, line, msg))
148
if 'error: ' in msg:
149
errors += 1
0 commit comments