Skip to content

Commit

Permalink
Fix handling of None value in data
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 29, 2015
1 parent a8b72b9 commit 0e499ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions odorik/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def format_value(value):
return '{0:.2f}'.format(value)
elif isinstance(value, int):
return '{0}'.format(value)
elif value is None:
return ''
return value

@classmethod
Expand Down

0 comments on commit 0e499ed

Please sign in to comment.