dvc: revert capitalization of logger.exception strings

per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347083819
This commit is contained in:
Jorge Orpinel
2020-01-23 00:50:24 -06:00
parent 6364c9ee62
commit 69c1aa5bbf
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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