Avoid failing on empty pip lists (which may occur).

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-08-08 12:20:59 -07:00
parent 779a70c3a0
commit 8888134c01
1 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,10 @@ def maketodo(
todos, tile_type = load_pipfile(pipfile, verbose=verbose)
verbose and print('%s: %u entries' % (pipfile, len(todos)))
if not todos:
verbose and print('%s: %u entries, done!' % (pipfile, len(todos)))
return
verbose and print("pipfile todo sample: %s" % list(todos)[0])
if 0 and verbose: