Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Feb 9, 2019
1 parent 2419f94 commit 0ed44cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dvc/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion dvc/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ def create(
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
Expand Down

0 comments on commit 0ed44cf

Please sign in to comment.