Skip to content

Commit 5ae5579

Browse files
authored
Fixed error in close auction
1 parent 42787f5 commit 5ae5579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/commands/auction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def close(self):
7575
if bid.price != winning_bid.price:
7676
winning_bids[role] = (winning_bid, bid.price)
7777
break
78-
winning_bids[role] = (winning_bid, winning_bid.price)
79-
78+
if role not in winning_bids.keys():
79+
winning_bids[role] = (winning_bid, winning_bid.price)
8080
else:
8181
winning_bids[role] = None
8282

0 commit comments

Comments
 (0)