Skip to content

Commit b1b811a

Browse files
committed
Fix minor bug in parsing
1 parent 8175e9c commit b1b811a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lchelper/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def find_example_section(s: str, cur_tag: str, next_tag: str, colon: str = ":",
133133
for ex_id, example in enumerate(problem.examples):
134134
try:
135135
input_str = find_example_section(example, "输入", "输出", ":")
136-
output_str = find_example_section(example, "输出", "解释", ":")
136+
output_str = find_example_section(example, "输出", "解释", ":", ignore_error=True)
137137
except ValueError:
138138
input_str = find_example_section(example, "Input", "Output", ignore_error=True)
139139
output_str = find_example_section(example, "Output", "Explanation", ignore_error=True)

0 commit comments

Comments
 (0)