esc-reporting/esc-analyze.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5ac6921163cd2b0919433274f3039b7dc90480f
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Oct 26 01:13:40 2018 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Oct 26 01:15:54 2018 +0200

    ESC: prevent list index out of range

diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index bd1a609..8c69675 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -775,7 +775,7 @@ def analyze_reports():
       if row['comments'][-1]['creator'] == 
'libreoffice-comm...@lists.freedesktop.org' and not key in 
cfg['bugzilla']['close_except']:
           statList['reportList']['to_be_closed'].append(key)
       cDate = datetime.datetime.strptime(row['creation_time'], 
"%Y-%m-%dT%H:%M:%SZ")
-      if cDate >= cfg['1weekDate'] or 'easyhack' in 
row['history'][-1]['changes'][0]['added']:
+      if cDate >= cfg['1weekDate'] or (len(row['history']) > 0 and 'easyhack' 
in row['history'][-1]['changes'][0]['added']):
         statList['reportList']['easyhacks_new'].append(key)
 
     tmpClist = sorted(statList['people'], key=lambda k: 
(statList['people'][k]['commits']['1month']['owner']),reverse=True)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to