turbaszek commented on a change in pull request #120:
URL: https://github.com/apache/kibble/pull/120#discussion_r541925765



##########
File path: kibble/scanners/scanners/travis.py
##########
@@ -195,50 +188,49 @@ def run(self):
                 self.block.release()
                 return
             self.block.release()
-            if not scanJob(self.KibbleBit, self.source, job, self.token, 
self.tld):
-                self.KibbleBit.pprint("[%s] This borked, trying another one" % 
job)
-                badOnes += 1
-                if badOnes > 100:
-                    self.KibbleBit.pprint("Too many errors, bailing!")
+            if not scan_job(self.kibble_bit, self.source, job, self.token, 
self.tld):
+                self.kibble_bit.pprint("[%s] This borked, trying another one" 
% job)
+                bad_ones += 1
+                if bad_ones > 100:
+                    self.kibble_bit.pprint("Too many errors, bailing!")
                     self.source["steps"]["travis"] = {
                         "time": time.time(),
                         "status": "Too many errors while parsing at "
                         + time.strftime("%Y/%m/%d %H:%M:%S", 
time.gmtime(time.time())),
                         "running": False,
                         "good": False,
                     }
-                    self.KibbleBit.updateSource(self.source)
+                    self.kibble_bit.update_source(self.source)
                     return
             else:
-                badOnes = 0
+                bad_ones = 0
 
 
-def sclan(KibbleBit, source):
+def scan(kibble_bit, source):

Review comment:
       This should fix the scanner 👀 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to