You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2025/06/16 10:23:32 UTC
svn commit: r1926463 - /comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
Author: sebb
Date: Mon Jun 16 10:23:32 2025
New Revision: 1926463
URL: http://svn.apache.org/viewvc?rev=1926463&view=rev
Log:
Ensure errors are detected
Modified:
comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
Modified: comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py?rev=1926463&r1=1926462&r2=1926463&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py Mon Jun 16 10:23:32 2025
@@ -26,6 +26,7 @@ def get_whimsy(url, env, ttl = 14400):
try:
print("Fetching %s => %s..." % (url, wanted_file))
rv = requests.get(url, headers = {'Authorization': env.get('HTTP_AUTHORIZATION')}, timeout = 5)
+ rv.raise_for_status()
js = rv.json()
# If we get a partial response (206), we need to weave the partial