Skip to content

Commit

Permalink
[import] don't fail on empty repositories list, print 'warning' inste…
Browse files Browse the repository at this point in the history
…ad (dirk-thomas#77)

* don't fail on empty repositories list, print 'warning' instead

* single quotes
  • Loading branch information
mikaelarguedas authored and dirk-thomas committed Sep 18, 2018
1 parent 2e45fca commit 6a2dc15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vcstool/commands/import_.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def get_repositories(yaml_file):

def get_repos_in_vcstool_format(repositories):
repos = {}
if repositories is None:
print(
ansi('yellowf') + 'List of repositories is empty' + ansi('reset'),
file=sys.stderr)
return repos
for path in repositories:
repo = {}
attributes = repositories[path]
Expand Down

0 comments on commit 6a2dc15

Please sign in to comment.