Skip to content

Commit

Permalink
dvc: fix errors found by flake8
Browse files Browse the repository at this point in the history
Fixes iterative#946. Kudos @cclaus for discovering!

Signed-off-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
efiop committed Jul 25, 2018
1 parent 1c371d0 commit 2e543e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/command/destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def run_cmd(self):
if not self.args.force and not prompt(msg, False):
msg = u'Cannot destroy without a confirmation from the user. ' \
u'Use \'-f\' to force.'
raise DvcException(err)
raise DvcException(msg)

self.project.destroy()
except Exception as exc:
Expand Down
1 change: 1 addition & 0 deletions dvc/remote/gs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from dvc.remote.local import RemoteLOCAL
from dvc.config import Config
from dvc.progress import progress
from dvc.exceptions import DvcException


class RemoteGS(RemoteBase):
Expand Down
2 changes: 2 additions & 0 deletions dvc/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def brancher(self, branches=None, all_branches=False):
if not branches:
branches = self.list_branches() if all_branches else [saved]
for branch in branches:
print("OLOLO " + branch)
self.checkout(branch)
yield branch
self.checkout(saved)
Expand Down Expand Up @@ -81,6 +82,7 @@ def __init__(self, root_dir=os.curdir):
super(Git, self).__init__(root_dir)

import git
from git.exc import InvalidGitRepositoryError
try:
self.repo = git.Repo(root_dir)
except InvalidGitRepositoryError:
Expand Down

0 comments on commit 2e543e4

Please sign in to comment.