We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77fe555 commit 05a99acCopy full SHA for 05a99ac
python/rubin/rag/extra_scripts/ingest_github.py
@@ -75,13 +75,15 @@ def load_org(n_repo_max: int = 2, org_name: str = "lsst-dm") -> list:
75
+ "/repos?per_page=100&sort=updated"
76
)
77
78
+ all_docs: list = []
79
+
80
try:
81
result = requests.get(api_url, timeout=10)
82
data = result.json()
83
except Exception:
84
logging.exception("Failed to retrieve list of org's repos.")
85
+ return all_docs
86
- all_docs: list = []
87
for i in range(n_repo_max):
88
docs = load_files_1repo(repo=data[i]["full_name"])
89
all_docs = all_docs + docs
0 commit comments