Skip to content

Commit

Permalink
Check for None in CreateEvent description
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketDG committed Oct 31, 2016
1 parent eebb2cf commit 9a0d16f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitsome/formatter.py
Expand Up @@ -199,7 +199,8 @@ def _format_create_delete_event(self, event):
item += self._format_time(event)
try:
item += self._format_indented_message(
event.payload['description'])
('' if event.payload['description'] is None
else event.payload['description']))
except KeyError:
pass
return item
Expand Down

0 comments on commit 9a0d16f

Please sign in to comment.