Closed SanketDG closed 7 years ago
Hi @SanketDG, thanks for the PR! I'll try to review it this week.
Looks good! I think the results from the API might have changed which might have caused this issue.
Note how the description
key lookup is wrapped in a try/except
block catching a KeyError
. I suspect the description
key might not have been sent in the past if the event description
is missing, but we see it is now sent with a value of None
.
try:
item += self._format_indented_message(
('' if event.payload['description'] is None
else event.payload['description']))
except KeyError:
pass
I'd leave the code catching KeyError
in place as a further safeguard.
Current coverage is 95.18% (diff: 100%)