Author: sebb
Date: Fri Jun 20 13:29:19 2025
New Revision: 1926598

URL: http://svn.apache.org/viewvc?rev=1926598&view=rev
Log:
Bugzilla now needs a login

Modified:
    comdev/reporter.apache.org/trunk/scripts/bugzillastats.py

Modified: comdev/reporter.apache.org/trunk/scripts/bugzillastats.py
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/bugzillastats.py?rev=1926598&r1=1926597&r2=1926598&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/bugzillastats.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/bugzillastats.py Fri Jun 20 
13:29:19 2025
@@ -25,8 +25,12 @@ __BUGZILLA_STATS = "../data/bugzillastat
 
 def getCSV(url):
     csv = {}
+    # TODO add authentication when made available: INFRA-26931
     with URLopen(url) as f:
-        lines = f.read().decode('utf-8').splitlines()
+        text = f.read().decode('utf-8')
+        if 'ASF Bugzilla needs a legitimate login and password to continue.' 
in text:
+            raise RuntimeError("Buzilla needs login")
+        lines = text.splitlines()
         for l in lines[1:]: # Drop header
             product, count = l.split(',')
             # product is enclosed in quotes; drop them


Reply via email to