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:08:43 UTC

svn commit: r1931841 - comdev/projects.apache.org/branches/tooling-project/scripts/cronjobs

Author: sebb
Date: Thu Feb 12 23:08:43 2026
New Revision: 1931841

Log:
Allow for parallel thread updates

Modified:
   comdev/projects.apache.org/branches/tooling-project/scripts/cronjobs/urlutils.py

Modified: comdev/projects.apache.org/branches/tooling-project/scripts/cronjobs/urlutils.py
==============================================================================
--- comdev/projects.apache.org/branches/tooling-project/scripts/cronjobs/urlutils.py	Thu Feb 12 23:02:47 2026	(r1931840)
+++ comdev/projects.apache.org/branches/tooling-project/scripts/cronjobs/urlutils.py	Thu Feb 12 23:08:43 2026	(r1931841)
@@ -255,7 +255,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: