Fix failure when bug has no 'date_fix_committed' attr

Also fix unit test to catch the similar failures

Change-Id: I33092e6e89cd77d4707bb61f2877c58efc775398
This commit is contained in:
Ilya Shakhat
2015-12-15 15:02:02 +03:00
parent a427610a70
commit 4cb83283e9
2 changed files with 5 additions and 9 deletions

View File

@@ -534,7 +534,7 @@ class RecordProcessor(object):
# present or the release date if no commit date is
# present.
bug_fixed['date'] = (
record['date_fix_committed'] or
record.get('date_fix_committed') or
record['date_fix_released']
)