From fcb7681683d625aaf9edb62e306482e2f1d654d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Thu, 16 Jan 2020 14:49:44 +0000 Subject: [PATCH] take exception transformation into account --- dvc/dependency/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/dependency/repo.py b/dvc/dependency/repo.py index aed3369a7..3bcfd3e65 100644 --- a/dvc/dependency/repo.py +++ b/dvc/dependency/repo.py @@ -9,6 +9,7 @@ from dvc.external_repo import cached_clone from dvc.external_repo import external_repo from dvc.exceptions import NotDvcRepoError from dvc.exceptions import OutputNotFoundError +from dvc.exceptions import NoOutputInExternalRepoError from dvc.exceptions import PathMissingError from dvc.utils.fs import fs_copy from dvc.path_info import PathInfo @@ -55,8 +56,7 @@ class DependencyREPO(DependencyLOCAL): try: with self._make_repo(rev_lock=rev_lock) as repo: return repo.find_out_by_relpath(self.def_path).info["md5"] - - except (NotDvcRepoError, OutputNotFoundError): + except (NotDvcRepoError, NoOutputInExternalRepoError): # Fall through and clone pass