def place_bid(self, owner_id, bid):
if self.state != AuctionState.BID:<EOL><INDENT>raise InvalidActionError("<STR_LIT>")<EOL><DEDENT>elif self.bid >= bid:<EOL><INDENT>raise InvalidActionError("<STR_LIT>" + str(bid) + "<STR_LIT>" + str(self.bid))<EOL><DEDENT>elif not self.owners[owner_id].can_buy(self.nominee, bid):<EOL><INDENT>raise InvalidActionError("<STR_LIT>" + str(owner_id) +<EOL>"<STR_LIT>" + str(bid) + "<STR_LIT>" + self.nominee.name +<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>self.tickbids[owner_id] = bid<EOL>
Submits a bid for this tick for current player. This is not a guarantee that it will be accepted!
If other players submit a higher bid this same tick, the bid won't be counted. Try again next tick if it's not
too high!
:param int owner_id: id of owner who is submitting the bid
:param int bid: bid amount

:raise InvalidActionError: if the action is not allowed according to the rules. See the error message
    for details.