Skip to content

Commit c4436d6

Browse files
committed
remove errno usage
1 parent d3fcd2b commit c4436d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def iterdir(self):
350350
OSError: If self.is_dir() is False.
351351
"""
352352
if not self.is_dir():
353-
raise OSError(errno.ENOTDIR, f"Not a directory: {self._path}")
353+
raise OSError(f"Not a directory: {self._path}")
354354
for name in os.listdir(self._path):
355355
yield Path(self._path, name)
356356

0 commit comments

Comments
 (0)