You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/02/21 19:23:19 UTC

[kibble-scanners] branch master updated: break if we hit the end

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new 22967d9  break if we hit the end
22967d9 is described below

commit 22967d9ffc13f72b7edf686340f84a35398893f5
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Feb 21 20:23:12 2018 +0100

    break if we hit the end
    
    continue is a bad choice, we need a clean break out of the loop
---
 src/plugins/scanners/travis.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/scanners/travis.py b/src/plugins/scanners/travis.py
index b8e1532..52148e9 100644
--- a/src/plugins/scanners/travis.py
+++ b/src/plugins/scanners/travis.py
@@ -97,6 +97,7 @@ def scanJob(KibbleBit, source, bid, token, TLD):
                     if pages > 1:
                         KibbleBit.pprint("Assuming this is the last page we need (found completed build on page > 1)")
                         last_page = True
+                        break
                     continue
                 
                 # Get build status (success, failed, canceled etc)

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.