Skip to content

Commit f4c5bc0

Browse files
committed
fail gracefully when api request for core download stats has an error
1 parent 42bfc73 commit f4c5bc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adabot/circuitpython_libraries.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ def print_circuitpython_download_stats():
282282
"""Gather and report analytics on the main CircuitPython repository."""
283283
response = github.get("/repos/adafruit/circuitpython/releases")
284284
if not response.ok:
285-
output_handler("Core CircuitPython GitHub analytics request failed.")
285+
output_handler(
286+
"Core CircuitPython GitHub download statistics request failed."
287+
)
288+
return
286289
releases = response.json()
287290

288291
found_unstable = False

0 commit comments

Comments
 (0)