refactor(session): simplify directory fsync handling
This commit is contained in:
1 parent
4a79cbb6e7
commit
afc65c086e
1 file changed
-1
@@ -693,7 +693,6 @@ class SessionManager:
|
||||
# reject directory fsync with EINVAL.
|
||||
with suppress(PermissionError):
|
||||
fd = os.open(str(path.parent), os.O_RDONLY)
|
||||
try:
|
||||
try:
|
||||
os.fsync(fd)
|
||||
except OSError as exc:
|
||||
|
||||
Reference in new issue
Block a user