From 94ae130b56bc3d6a4a3210a605d7c6a57f9f517f Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 19 Jul 2018 07:44:48 +0300 Subject: [PATCH] dvc: fix exception name Signed-off-by: Ruslan Kuprieiev --- dvc/dependency/local.py | 2 +- dvc/output/local.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):