From 99142220767eab65afd1d60a1e4534f13383c46a Mon Sep 17 00:00:00 2001 From: agroce Date: Sun, 19 May 2019 17:50:30 -0700 Subject: [PATCH] fix loop --- bin/deepstate/reducer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deepstate/reducer.py b/bin/deepstate/reducer.py index fe87afe..2756a61 100644 --- a/bin/deepstate/reducer.py +++ b/bin/deepstate/reducer.py @@ -264,7 +264,7 @@ def main(): cutj = cuts[j] if cutj[0] > cuti[1]: bytesj = currentTest[cutj[0]:cutj[1] + 1] - if bytesi > bytesj: + if (len(bytesj) > 0) and (bytesi > bytesj): newTest = currentTest[:cuti[0]] + bytesj + currentTest[cuti[1]+1:cutj[0]] newTest += bytesi newTest += currentTest[cutj[1]+1:]