Skip to content

Commit 05a99ac

Browse files
authored
modify except
1 parent 77fe555 commit 05a99ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/rubin/rag/extra_scripts/ingest_github.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ def load_org(n_repo_max: int = 2, org_name: str = "lsst-dm") -> list:
7575
+ "/repos?per_page=100&sort=updated"
7676
)
7777

78+
all_docs: list = []
79+
7880
try:
7981
result = requests.get(api_url, timeout=10)
8082
data = result.json()
8183
except Exception:
8284
logging.exception("Failed to retrieve list of org's repos.")
85+
return all_docs
8386

84-
all_docs: list = []
8587
for i in range(n_repo_max):
8688
docs = load_files_1repo(repo=data[i]["full_name"])
8789
all_docs = all_docs + docs

0 commit comments

Comments
 (0)