Skip to content

Commit

Permalink
Move the isinf test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 27, 2019
1 parent e98e5f6 commit adf37bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agate/table/print_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def print_table(self, max_rows=20, max_columns=6, output=sys.stdout, max_column_
v = ellipsis
elif v is None:
v = ''
elif math.isinf(v):
v = six.text_type(v)
elif number_formatters[j] is not None:
elif number_formatters[j] is not None and not math.isinf(v):
v = format_decimal(
v,
format=number_formatters[j],
Expand Down

0 comments on commit adf37bf

Please sign in to comment.