From 7289373d2e2e2230f4bf3e0098b37db0d7712390 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 5 Mar 2023 14:46:57 +0100 Subject: bad_attrs: add a comment --- bad_attrs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bad_attrs.py b/bad_attrs.py index fc1f4d8..4683540 100755 --- a/bad_attrs.py +++ b/bad_attrs.py @@ -98,6 +98,8 @@ def path_has_bad_flags(path): # Either one of: # Inappropriate ioctl for device # Permission denied + # It's relied upon that fcntl throws OSError instead of + # PermissionError. logging.warning('%s: %s', path, e) return False raise -- cgit v1.2.3