You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/06 23:53:24 UTC

svn commit: r1864576 - /comdev/reporter.apache.org/trunk/scripts/wsgi.py

Author: humbedooh
Date: Tue Aug  6 23:53:24 2019
New Revision: 1864576

URL: http://svn.apache.org/viewvc?rev=1864576&view=rev
Log:
break and don't save to cache on failure..

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

Modified: comdev/reporter.apache.org/trunk/scripts/wsgi.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/wsgi.py?rev=1864576&r1=1864575&r2=1864576&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/wsgi.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/wsgi.py Tue Aug  6 23:53:24 2019
@@ -36,6 +36,8 @@ def app(environ, start_fn):
         # If cache failed, generate fom scratch
         else:
             mpdata = pdata.generate(user, xproject, xproject == project)
+            if not mpdata:
+                break
             open(wanted_file, "w").write(json.dumps(mpdata))
         # Weave results into combined object, mindful of kibble data
         for k, v in mpdata.items():