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 09:48:37 UTC
[kibble-scanners] 02/02: don't bork if color isn't present
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 36641888c14030d57a928de70f9a82211564d848
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Feb 21 10:48:25 2018 +0100
don't bork if color isn't present
---
src/plugins/scanners/jenkins.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/scanners/jenkins.py b/src/plugins/scanners/jenkins.py
index 071a5f0..7d52a49 100644
--- a/src/plugins/scanners/jenkins.py
+++ b/src/plugins/scanners/jenkins.py
@@ -223,7 +223,7 @@ def scan(KibbleBit, source):
# Count how many jobs are building
building = 0
for job in jobsjs.get('jobs', []):
- if 'anime' in job['color']: # a running job will have foo_anime as color
+ if 'anime' in job.get('color', ''): # a running job will have foo_anime as color
building += 1
# Write up a queue doc
--
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.