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 2017/01/19 08:37:11 UTC

svn commit: r1779430 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py

Author: sebb
Date: Thu Jan 19 08:37:10 2017
New Revision: 1779430

URL: http://svn.apache.org/viewvc?rev=1779430&view=rev
Log:
Allow for missing chair name in CI

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

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1779430&r1=1779429&r2=1779430&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Thu Jan 19 08:37:10 2017
@@ -204,7 +204,11 @@ chairs={}
 for e in c_info:
     if c_info[e]['pmc']:
         v = c_info[e]
-        chairs[v['display_name']] = list(v['chair'].values())[0]['name']
+        cn = v['chair'].values()
+        if len(cn) > 0:
+            chairs[v['display_name']] = list(cn)[0]['name']
+        else:
+            print("WARN: no chair name found for %s in CI" % v['display_name'])
 
 chairIndex = 'https://svn.apache.org/repos/asf/infrastructure/site/trunk/content/foundation/index.mdtext'
 resp = uc.get(chairIndex, name=None, encoding='utf-8', errors=None)