Skip to content

Commit 3a9057c

Browse files
authored
Merge pull request #394 from slaftos/rtd-results-exception
RTD results can cause exception
2 parents d4b5090 + 1abc105 commit 3a9057c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adabot/lib/circuitpython_library_validators.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -975,9 +975,10 @@ def validate_readthedocs(self, repo):
975975

976976
# Return the results of the latest run
977977
doc_build_results = json_response.get("results")
978-
if doc_build_results is None:
978+
if doc_build_results is None or not doc_build_results:
979979
errors.append(ERROR_RTD_FAILED_TO_LOAD_BUILD_STATUS_RTD_UNEXPECTED_RETURN)
980980
return errors
981+
981982
result = doc_build_results[0].get("success")
982983
time.sleep(3)
983984
if not result:

0 commit comments

Comments
 (0)