Skip to content

Commit

Permalink
Fix flaw where we have invalid numerical input in bounty CSV and it n…
Browse files Browse the repository at this point in the history
…eeds to be handled.
  • Loading branch information
miohtama committed Mar 2, 2018
1 parent 26e4ae7 commit 275c082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ico/cmd/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import List

import click
import decimal
from eth_utils import is_address
from eth_utils import is_checksum_address
from eth_utils import to_checksum_address
Expand Down Expand Up @@ -67,7 +68,7 @@ def read_file(combined: dict, all_errors: List[tuple], book_keeping: collections

try:
amount = Decimal(amount)
except ValueError:
except (ValueError, decimal.InvalidOperation):
errors.append((csv_file, line, "Bad decimal amount: {}".format(amount)))
continue

Expand Down

0 comments on commit 275c082

Please sign in to comment.