aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xbad_attrs.py2
1 files changed, 2 insertions, 0 deletions
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