Raise NoParkingSlotError instead of RuntimeError when running out of ground spawns.

This commit is contained in:
MetalStormGhost 2023-09-19 11:11:37 +03:00
parent 946d578ffb
commit 6fd60d150e

View File

@ -436,7 +436,9 @@ class FlightGroupSpawner:
)
group.units[1 + i].heading = ground_spawn[0].units[0].heading
except IndexError as ex:
raise RuntimeError(f"Not enough STOL slots available at {cp}") from ex
raise NoParkingSlotError(
f"Not enough STOL slots available at {cp}"
) from ex
return group
def dcs_start_type(self) -> DcsStartType: