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/09/09 14:06:36 UTC

[kibble-scanners] 01/02: closer may be null for imported issues

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 899a7511473e7cd27adc64a637401daa5210c465
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 9 16:05:23 2018 +0200

    closer may be null for imported issues
---
 src/plugins/scanners/jira.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index fd8209f..cb1ba75 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -81,7 +81,7 @@ def wasclosed(js):
             if 'items' in citem:
                 for item in citem['items']:
                     if item['field'] == 'status' and (item['toString'].lower().find('closed') != -1 or item['toString'].lower().find('resolved') != -1):
-                        return (True, citem['author'])
+                        return (True, citem.get('author', 'Unknown'))
     else:
         if 'items' in js:
             for item in js['items']: