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 2026/02/12 23:10:19 UTC

svn commit: r1931842 - comdev/reporter.apache.org/trunk/scripts

Author: sebb
Date: Thu Feb 12 23:10:19 2026
New Revision: 1931842

Log:
Allow for parallel thread update

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

Modified: comdev/reporter.apache.org/trunk/scripts/urlutils.py
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/urlutils.py	Thu Feb 12 23:08:43 2026	(r1931841)
+++ comdev/reporter.apache.org/trunk/scripts/urlutils.py	Thu Feb 12 23:10:19 2026	(r1931842)
@@ -257,7 +257,10 @@ class UrlCache(object):
                     shutil.copyfileobj(response, f)
                 if not useFileModTime:
                     # store the last mod time as the time of the file
-                    touchFile(tmpFile, lastModT)
+                    try:
+                        touchFile(tmpFile, lastModT)
+                    except FileNotFoundError: # this can happen if another thread refreshes the file
+                        pass
                 os.rename(tmpFile, target) # seems to preserve file mod time
                 if lastMod:
                     if fileTime > 0: