Skip to content

Commit 72812b5

Browse files
committed
api: fix get_url() non-dvc repo error message
1 parent eb97e0b commit 72812b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dvc/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from voluptuous import Schema, Required, Invalid
1111

1212
from dvc.repo import Repo
13-
from dvc.exceptions import DvcException, NotDvcRepoError
13+
from dvc.exceptions import DvcException
1414
from dvc.external_repo import external_repo
1515

1616

@@ -43,7 +43,7 @@ class SummonError(DvcException):
4343
pass
4444

4545

46-
class UrlNotDvcRepoError(NotDvcRepoError):
46+
class UrlNotDvcRepoError(DvcException):
4747
"""Thrown if given url is not a DVC repository.
4848
4949
Args:

tests/func/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import pytest
77

88
from dvc import api
9-
from dvc.api import SummonError, NotDvcRepoError, UrlNotDvcRepoError
9+
from dvc.api import SummonError, UrlNotDvcRepoError
1010
from dvc.compat import fspath
11-
from dvc.exceptions import FileMissingError
11+
from dvc.exceptions import FileMissingError, NotDvcRepoError
1212
from dvc.main import main
1313
from dvc.path_info import URLInfo
1414
from dvc.remote.config import RemoteConfig

0 commit comments

Comments
 (0)