mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 23:09:21 +01:00
get: no relpath on output not found (#2435)
* get: no relpath on output not found related #2430 * get: catch output not found
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
b903fe8023
commit
190fbaa63b
+8
-1
@@ -4,7 +4,12 @@ import shortuuid
|
||||
|
||||
from dvc.stage import Stage
|
||||
from dvc.config import Config
|
||||
from dvc.exceptions import NotDvcRepoError, UrlNotDvcRepoError, GetDVCFileError
|
||||
from dvc.exceptions import (
|
||||
NotDvcRepoError,
|
||||
UrlNotDvcRepoError,
|
||||
GetDVCFileError,
|
||||
OutputNotFoundError,
|
||||
)
|
||||
from dvc.path_info import PathInfo
|
||||
from dvc.external_repo import external_repo
|
||||
from dvc.state import StateNoop
|
||||
@@ -59,5 +64,7 @@ def get(url, path, out=None, rev=None):
|
||||
|
||||
except NotDvcRepoError:
|
||||
raise UrlNotDvcRepoError(url)
|
||||
except OutputNotFoundError:
|
||||
raise OutputNotFoundError(path)
|
||||
finally:
|
||||
remove(tmp_dir)
|
||||
|
||||
Reference in New Issue
Block a user