From 8888134c010cf289c85bcb683887f66ecb27961a Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 8 Aug 2019 12:20:59 -0700 Subject: [PATCH] Avoid failing on empty pip lists (which may occur). Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fuzzers/int_maketodo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fuzzers/int_maketodo.py b/fuzzers/int_maketodo.py index 2cc98535..a2b651ae 100644 --- a/fuzzers/int_maketodo.py +++ b/fuzzers/int_maketodo.py @@ -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: