diff --git a/dvc/dependency/local.py b/dvc/dependency/local.py index 20705f75d..278e6d9f5 100644 --- a/dvc/dependency/local.py +++ b/dvc/dependency/local.py @@ -59,7 +59,7 @@ class DependencyLOCAL(DependencyBase): raise self.DoesNotExistError(self.rel_path) if not os.path.isfile(self.path) and not os.path.isdir(self.path): - raise self.NotFileOrDirError(self.rel_path) + raise self.IsNotFileOrDirError(self.rel_path) if (os.path.isfile(self.path) and os.path.getsize(self.path) == 0) or \ (os.path.isdir(self.path) and len(os.listdir(self.path)) == 0): diff --git a/dvc/output/local.py b/dvc/output/local.py index 05a863521..8f7cbbe9b 100644 --- a/dvc/output/local.py +++ b/dvc/output/local.py @@ -82,7 +82,7 @@ class OutputLOCAL(DependencyLOCAL): raise self.DoesNotExistError(self.rel_path) if not os.path.isfile(self.path) and not os.path.isdir(self.path): - raise self.NotFileOrDirError(self.rel_path) + raise self.IsNotFileOrDirError(self.rel_path) if (os.path.isfile(self.path) and os.path.getsize(self.path) == 0) or \ (os.path.isdir(self.path) and len(os.listdir(self.path)) == 0):