mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Improve logging in defaultsquadronassigner.py.
https://github.com/dcs-liberation/dcs_liberation/issues/2786
This commit is contained in:
parent
52fb153790
commit
4cf7864916
@ -86,7 +86,11 @@ class DefaultSquadronAssigner:
|
|||||||
try:
|
try:
|
||||||
aircraft = AircraftType.named(preferred_aircraft)
|
aircraft = AircraftType.named(preferred_aircraft)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# No aircraft with this name.
|
logging.warning(
|
||||||
|
"%s is neither a compatible squadron or a known aircraft type, "
|
||||||
|
"ignoring",
|
||||||
|
preferred_aircraft,
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if aircraft not in self.coalition.faction.aircrafts:
|
if aircraft not in self.coalition.faction.aircrafts:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user