From 626ae3a725eaa7c1750acf24388e0ce1d861cd18 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 23 Mar 2013 23:18:24 -0400 Subject: [PATCH] Changelog fixup --- changelog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.py b/changelog.py index d4f063f160..ac300d97be 100644 --- a/changelog.py +++ b/changelog.py @@ -33,7 +33,8 @@ def getBuildInfo(url): data = ast.literal_eval(data)['builds'] data = sorted(data, key=lambda key: key['number'], reverse=True) for build in data: - build['actions'] = filter(lambda act: 'text' in act, build['actions']) + build['actions'] = filter(lambda act: act is not None, build['actions']) + build['actions'] = filter(lambda act: 'text' in act, build['actions']) build['actions'] = filter(lambda act: not ' ' in act['text'], build['actions']) if len(build['actions']) == 0: build['version'] = None @@ -74,4 +75,4 @@ def make_changelog(job_path, target_build, change_file, current_version=None): file = open(change_file, 'wb') for line in log: file.write('%s\n' % line) - file.close() \ No newline at end of file + file.close()