Skip to content

Commit

Permalink
Merge pull request #394 from slaftos/rtd-results-exception
Browse files Browse the repository at this point in the history
RTD results can cause exception
  • Loading branch information
FoamyGuy authored Jan 17, 2025
2 parents d4b5090 + 1abc105 commit 3a9057c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adabot/lib/circuitpython_library_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,10 @@ def validate_readthedocs(self, repo):

# Return the results of the latest run
doc_build_results = json_response.get("results")
if doc_build_results is None:
if doc_build_results is None or not doc_build_results:
errors.append(ERROR_RTD_FAILED_TO_LOAD_BUILD_STATUS_RTD_UNEXPECTED_RETURN)
return errors

result = doc_build_results[0].get("success")
time.sleep(3)
if not result:
Expand Down

0 comments on commit 3a9057c

Please sign in to comment.