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

Signed-off-by: Keith Rothman <[email protected]>
This commit is contained in:
Keith Rothman
2019-08-08 12:23:30 -07:00
parent 779a70c3a0
commit 8888134c01
+4
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: