community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1870081 - /comdev/projects.apache.org/trunk/scripts/newtlp.py
Date Thu, 21 Nov 2019 11:04:05 GMT
Author: sebb
Date: Thu Nov 21 11:04:05 2019
New Revision: 1870081

URL: http://svn.apache.org/viewvc?rev=1870081&view=rev
Log:
Must have description

Modified:
    comdev/projects.apache.org/trunk/scripts/newtlp.py

Modified: comdev/projects.apache.org/trunk/scripts/newtlp.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/newtlp.py?rev=1870081&r1=1870080&r2=1870081&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/newtlp.py (original)
+++ comdev/projects.apache.org/trunk/scripts/newtlp.py Thu Nov 21 11:04:05 2019
@@ -69,16 +69,19 @@ for arg in sys.argv[1:]:
         continue
     try:
         cttee = committees[arg]
-        data = {
-            "id": arg,
-            "site": cttee['site'],
-            "fullname": cttee['fullname'],
-            "description": cttee['description'],
-        }
-        out = template.substitute(data)
-        print("Creating "+outfile)
-        with open(outfile,'w') as o:
-            o.write(out)
-        update_xml(arg)
+        if cttee['description']:
+            data = {
+                "id": arg,
+                "site": cttee['site'],
+                "fullname": cttee['fullname'],
+                "description": cttee['description'],
+            }
+            out = template.substitute(data)
+            print("Creating "+outfile)
+            with open(outfile,'w') as o:
+                o.write(out)
+            update_xml(arg)
+        else:
+            print("No description found for "+arg)
     except KeyError:
-        print("Cannot find "+arg)
\ No newline at end of file
+        print("Cannot find "+arg)



Mime
View raw message