diff --git a/_shared/local_extensions.py b/_shared/local_extensions.py index 94a7157..38ad18c 100644 --- a/_shared/local_extensions.py +++ b/_shared/local_extensions.py @@ -150,7 +150,7 @@ def include_exists(self, context, path): try: with self._open(context, path): return True - except (FileNotFoundError, IsADirectoryError): + except (FileNotFoundError, IsADirectoryError, NotADirectoryError): return False @pass_context