Add exception for non-float bids when pubishing
This commit is contained in:
parent
0edcf2dcc7
commit
2621ba6982
1 changed files with 3 additions and 0 deletions
|
@ -2001,6 +2001,9 @@ class Daemon(AuthJSONRPCServer):
|
|||
except (TypeError, URIParseError):
|
||||
raise Exception("Invalid name given to publish")
|
||||
|
||||
if not isinstance(bid, float):
|
||||
raise Exception("Bid must be a float")
|
||||
|
||||
if bid <= 0.0:
|
||||
raise Exception("Invalid bid")
|
||||
|
||||
|
|
Loading…
Reference in a new issue