mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fixed potential exception in start if user enter invalid value inside the combined arms slots entry.
This commit is contained in:
parent
93d0746d3e
commit
2cbe63f162
@ -154,7 +154,10 @@ class EventMenu(Menu):
|
||||
self.event.is_awacs_enabled = False
|
||||
|
||||
ca_slot_entry_value = self.ca_slot_entry.get()
|
||||
ca_slots = int(ca_slot_entry_value and ca_slot_entry_value or "0")
|
||||
try:
|
||||
ca_slots = int(ca_slot_entry_value and ca_slot_entry_value or "0")
|
||||
except:
|
||||
ca_slots = 0
|
||||
self.event.ca_slots = ca_slots
|
||||
|
||||
flights = {k: {} for k in self.event.tasks} # type: db.TaskForceDict
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user