mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix 'IndexError' exception
This commit is contained in:
parent
1ba3f2fbb4
commit
d22bfd0804
@ -46,7 +46,7 @@ class TgoJs(BaseModel):
|
|||||||
detection_ranges=detection_ranges,
|
detection_ranges=detection_ranges,
|
||||||
dead=tgo.is_dead,
|
dead=tgo.is_dead,
|
||||||
sidc=str(tgo.sidc()),
|
sidc=str(tgo.sidc()),
|
||||||
task=tgo.groups[0].ground_object.task,
|
task=tgo.groups[0].ground_object.task if tgo.groups else None,
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user