[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 25 23:16:41 UTC 2018
esc-reporting/esc-analyze.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f5ac6921163cd2b0919433274f3039b7dc90480f
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Oct 26 01:13:40 2018 +0200
Commit: Xisco Fauli <xiscofauli at 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-commits at 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)
More information about the Libreoffice-commits
mailing list