mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dvc: revert capitalization of logger.exception strings
per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347083819
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ class CmdGet(CmdBaseNoRepo):
|
||||
)
|
||||
logger.info(url)
|
||||
except DvcException:
|
||||
logger.exception("Failed to show URL")
|
||||
logger.exception("failed to show URL")
|
||||
return 1
|
||||
|
||||
return 0
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ class CmdInit(CmdBaseNoRepo):
|
||||
)
|
||||
self.config = self.repo.config
|
||||
except InitError:
|
||||
logger.exception("Failed to initiate DVC")
|
||||
logger.exception("failed to initiate DVC")
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class CmdInstall(CmdBase):
|
||||
try:
|
||||
self.repo.install()
|
||||
except Exception:
|
||||
logger.exception("Failed to install DVC Git hooks")
|
||||
logger.exception("failed to install DVC Git hooks")
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ def test_get_url_not_existing(tmp_dir, erepo_dir, caplog):
|
||||
main(["get", fspath(erepo_dir), "not-existing-file", "--show-url"])
|
||||
== 1
|
||||
)
|
||||
assert "Failed to show URL" in caplog.text
|
||||
assert "failed to show URL" in caplog.text
|
||||
|
||||
|
||||
def test_get_url_git_only_repo(tmp_dir, scm, caplog):
|
||||
@@ -198,4 +198,4 @@ def test_get_url_git_only_repo(tmp_dir, scm, caplog):
|
||||
|
||||
with caplog.at_level(logging.ERROR):
|
||||
assert main(["get", fspath(tmp_dir), "foo", "--show-url"]) == 1
|
||||
assert "Failed to show URL" in caplog.text
|
||||
assert "failed to show URL" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user