Skip to content

Commit

Permalink
Fix meetings export
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 3, 2018
1 parent c4c4311 commit ab5fdb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daiquiri/meetings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,7 @@ def as_text(self):
return '\n' + ''.join(['%s: %s\n' % value for value in values])

def get_contribution_type_display(self):
return dict(settings.MEETINGS_CONTRIBUTION_TYPES)[self.contribution_type]
try:
return dict(settings.MEETINGS_CONTRIBUTION_TYPES)[self.contribution_type]
except KeyError:
return ''

0 comments on commit ab5fdb3

Please sign in to comment.