fix formatting

This commit is contained in:
Ivan Shcheklein
2019-02-09 15:44:12 -08:00
parent 2419f94ef3
commit 0ed44cf151
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -262,7 +262,9 @@ def _description(message, exception):
elif message:
description = "{message}"
else:
raise DvcException('Unexpected error - either exception or message must be provided')
raise DvcException(
"Unexpected error - either exception or message must be provided"
)
return description.format(message=message, exception=exception)
+3 -1
View File
@@ -375,7 +375,9 @@ class Stage(object):
stage = Stage(project=project, cwd=cwd, cmd=cmd, locked=locked)
stage.outs = output.loads_from(stage, outs, use_cache=True)
stage.outs = output.loads_from(stage, metrics, use_cache=True, metric=True)
stage.outs += output.loads_from(
stage, metrics, use_cache=True, metric=True
)
stage.outs += output.loads_from(stage, outs_no_cache, use_cache=False)
stage.outs += output.loads_from(
stage, metrics_no_cache, use_cache=False, metric=True