diff --git a/bitshares/price.py b/bitshares/price.py index 997716e90b8ca388d2dc9d50359b18f8741e403c..af0a3913420f1b8f8395eacb0c30fe5b38a3dee1 100644 --- a/bitshares/price.py +++ b/bitshares/price.py @@ -139,7 +139,7 @@ class Price(dict): self["base"] = base elif (len(args) == 2 and - (isinstance(args[0], float) or isinstance(args[0], int)) and + (isinstance(args[0], float) or isinstance(args[0], int)) and isinstance(args[1], str)): import re price = args[0] @@ -186,7 +186,7 @@ class Price(dict): } def __repr__(self): - return "{price:.{precision}f} {base}/{quote} ".format( + return "{price:.{precision}f} {base}/{quote}".format( price=self["price"], base=self["base"]["symbol"], quote=self["quote"]["symbol"],