Merge "Fix index error when message array is blank"

This commit is contained in:
Martin Fick 2012-03-22 13:00:16 -07:00 committed by gerrit code review
commit bc87753e7e

View File

@ -77,7 +77,7 @@ for line in stdout_value.splitlines(True):
else:
if line == '\n':
# Don't add extra blank line if last one is already blank
if message[-1] != '+\n':
if message != [] and message[-1] != '+\n':
message.append('+\n')
else:
message.append(line)