storage/mtime resultion test: do not stop hard in case mtime cannot be set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user