Skip to content

Commit 62a72ae

Browse files
authored
Skip system message check if inferred doc file not exists (#7142)
1 parent da3269d commit 62a72ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci_scripts/check_api_docs_en.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import argparse
22
import json
3+
import os
34
import sys
45

56
source_to_doc_dict = {}
@@ -68,6 +69,9 @@ def check_system_message_in_doc(doc_file):
6869
return: True or False
6970
"""
7071
pass_check = True
72+
if not os.path.exists(doc_file):
73+
return pass_check
74+
7175
with open(doc_file, "r") as f:
7276
for line, row in enumerate(f):
7377
if SYSTEM_MESSAGE_WARNING in row:

0 commit comments

Comments
 (0)