From 6638e15fd082731684becb304bc227213eb3910b Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 19 Apr 2026 08:54:57 +0200 Subject: [PATCH] storage/mtime resultion test: do not stop hard in case mtime cannot be set --- radicale/storage/multifilesystem/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/storage/multifilesystem/__init__.py b/radicale/storage/multifilesystem/__init__.py index 7deeaac7..65ea9b81 100644 --- a/radicale/storage/multifilesystem/__init__.py +++ b/radicale/storage/multifilesystem/__init__.py @@ -110,7 +110,7 @@ class Storage( except Exception as e: logger.warning("Storage item mtime resolution test not possible, cannot set utime on file: %r (%s)", path, e) os.remove(path) - raise + raise ValueError # do not raise a hard PermissionError logger.debug("Storage item mtime resoultion test set: %d ns" % MTIME_NS_TEST) mtime_ns = os.stat(path).st_mtime_ns - mtime_ns logger.debug("Storage item mtime resoultion test get: %d ns" % mtime_ns)