community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1689575 - /comdev/reporter.apache.org/branches/deployed/site/addrelease.py
Date Tue, 07 Jul 2015 05:40:34 GMT
Author: sebb
Date: Tue Jul  7 05:40:33 2015
New Revision: 1689575

URL: http://svn.apache.org/r1689575
Log:
Need to check it's there otherwise del barfs

Modified:
    comdev/reporter.apache.org/branches/deployed/site/addrelease.py

Modified: comdev/reporter.apache.org/branches/deployed/site/addrelease.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/site/addrelease.py?rev=1689575&r1=1689574&r2=1689575&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/site/addrelease.py (original)
+++ comdev/reporter.apache.org/branches/deployed/site/addrelease.py Tue Jul  7 05:40:33 2015
@@ -47,7 +47,8 @@ if date != None and version and committe
         if date > 0:
             rdata[version] = date
         else: # it's 1970-01-01
-            del rdata[version]
+            if version in rdata:
+                del rdata[version]
         with open("/var/www/reporter.apache.org/data/releases/%s.json" % committee, "w")
as f:
             f.write(json.dumps(rdata))
             f.close()



Mime
View raw message