Add exception for non-float bids when pubishing

This commit is contained in:
Jeremy Curcio 2018-02-03 14:04:53 -05:00 committed by hackrush
parent 0edcf2dcc7
commit 2621ba6982

View file

@ -2001,6 +2001,9 @@ class Daemon(AuthJSONRPCServer):
except (TypeError, URIParseError): except (TypeError, URIParseError):
raise Exception("Invalid name given to publish") raise Exception("Invalid name given to publish")
if not isinstance(bid, float):
raise Exception("Bid must be a float")
if bid <= 0.0: if bid <= 0.0:
raise Exception("Invalid bid") raise Exception("Invalid bid")