Skip to content

Commit 9d62c21

Browse files
authored
Merge pull request #1 from FoamyGuy/fix_error_num
remove errno usage
2 parents d3fcd2b + c4436d6 commit 9d62c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pathlib.py

+1-1
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)