mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #947 from efiop/master
dvc: fix errors found by flake8
This commit is contained in:
@@ -13,7 +13,7 @@ class CmdDestroy(CmdBase):
|
||||
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:
|
||||
|
||||
@@ -16,6 +16,7 @@ from dvc.remote.base import RemoteBase
|
||||
from dvc.remote.local import RemoteLOCAL
|
||||
from dvc.config import Config
|
||||
from dvc.progress import progress
|
||||
from dvc.exceptions import DvcException
|
||||
|
||||
|
||||
class RemoteGS(RemoteBase):
|
||||
|
||||
@@ -53,6 +53,7 @@ class Base(object):
|
||||
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)
|
||||
@@ -81,6 +82,7 @@ class Git(Base):
|
||||
super(Git, self).__init__(root_dir)
|
||||
|
||||
import git
|
||||
from git.exc import InvalidGitRepositoryError
|
||||
try:
|
||||
self.repo = git.Repo(root_dir)
|
||||
except InvalidGitRepositoryError:
|
||||
|
||||
Reference in New Issue
Block a user