diff --git a/docling/cli/main.py b/docling/cli/main.py index 5eb4c6051f..204425390d 100644 --- a/docling/cli/main.py +++ b/docling/cli/main.py @@ -654,7 +654,7 @@ def convert( # noqa: C901 f"[red]Error: The input file {src} does not exist.[/red]" ) raise typer.Abort() - except IsADirectoryError: + except (IsADirectoryError, PermissionError): # if the input matches to a file or a folder try: local_path = TypeAdapter(Path).validate_python(src)