Skip to content

Commit 9b825bf

Browse files
committed
fix wildcard for ubuntu
1 parent 9d5fdb2 commit 9b825bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jinja2_pdoc/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def wrapper(file: str) -> Generator[Path, None, None]:
2323
try:
2424
file = Path(file)
2525
file.resolve(True)
26-
except (FileNotFoundError, TypeError):
26+
except TypeError:
2727
pass
28-
except OSError:
28+
except (OSError, FileNotFoundError):
2929
parent, pattern = file.parent, file.name
3030

3131
yield from parent.glob(pattern)

0 commit comments

Comments
 (0)