Skip to content

Commit

Permalink
fix #87
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Mar 25, 2019
1 parent 1326d57 commit bfd6d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphenecommon/amount.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, *args, **kwargs):
raise ValueError

# make sure amount is a float
self["amount"] = float(self["amount"])
self["amount"] = float(self.get("amount", 0.0))

def copy(self):
""" Copy the instance and make sure not to use a reference
Expand Down

0 comments on commit bfd6d6c

Please sign in to comment.