choice tie-break and random fallback + exception cleanup + war<->camp pid
This commit is contained in:
parent
241d7f10f5
commit
241e76c937
15 changed files with 241 additions and 157 deletions
|
|
@ -10,7 +10,7 @@ from warchron.constants import (
|
|||
)
|
||||
from warchron.model.exception import (
|
||||
DomainError,
|
||||
ForbiddenOperation,
|
||||
AbortedOperation,
|
||||
RequiresConfirmation,
|
||||
)
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ class WarController:
|
|||
)
|
||||
if not dialog.exec():
|
||||
TieResolver.cancel_tie_break(war, ctx)
|
||||
raise ForbiddenOperation("Tie resolution cancelled")
|
||||
raise AbortedOperation("Tie resolution cancelled")
|
||||
bids_map[ctx.key()] = dialog.get_bids()
|
||||
return bids_map
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue