Formatting

This commit is contained in:
Raffson 2023-10-01 19:32:20 +02:00
parent bce6a170b8
commit 8e670e1a3c
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 2 additions and 4 deletions

View File

@ -200,7 +200,7 @@ class Faction:
faction = Faction(
locales=json.get("locales"),
country=country,
cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind"))
cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind")),
)
faction.name = json.get("name", "")

View File

@ -415,9 +415,7 @@ class Squadron:
return
parking_type = ParkingType().from_squadron(self)
if self.expected_size_next_turn > self.location.unclaimed_parking(
parking_type
):
if self.expected_size_next_turn > self.location.unclaimed_parking(parking_type):
raise RuntimeError(f"Not enough parking for {self} at {self.location}.")
self.destination = None
self.cancel_ferry_flights()