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

commit 21380bfc1a7c55b821866fa10afe9e840117ec41
Author: Daniel Gruno <humbed...@apache.org>
AuthorDate: Fri Mar 2 15:51:41 2018 +0100

    don't kill the loop
    
    scope is wrong here. it should return True at the end,
    if the loop is successful, and False within the loop when
    an error occurs.
---
 src/plugins/scanners/discourse.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/plugins/scanners/discourse.py 
b/src/plugins/scanners/discourse.py
index 863e4c9..cfa823e 100644
--- a/src/plugins/scanners/discourse.py
+++ b/src/plugins/scanners/discourse.py
@@ -185,12 +185,10 @@ def scanJob(KibbleBit, source, cat, creds):
                         'url': topicdoc['url']
                     }
                     KibbleBit.append('forum_post', pdoc)
-            
-        return True    
-    
-    # Boo, it failed!
-    KibbleBit.pprint("Fetching job data failed!")
-    return False
+        else:
+            KibbleBit.pprint("Fetching discourse data failed!")
+            return False
+    return True
 
 
 class discourseThread(threading.Thread):

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

Reply via email to