Board index FlightGear Support Tools ATC-pie

BUG: crash on environment after plane handoff  Topic is solved

ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network.

BUG: crash on environment after plane handoff

Postby come_744 » Sun Jul 18, 2021 7:03 pm

Hello,

Here is a bug report for ATC-pie v1.8.2:

Reproduction:

    Solo mode simulation (not tested online)
    Process a flight…
    Handoff the flight strip
    Click Environment info button (or the corresponding menu item)

Expected:

Open Environment info window

Result:

Code: Select all
Traceback (most recent call last):
  File "/home/come/Téléchargements/ATCpie/gui/dialog/miscDialogs.py", line 244, in showEvent
    sent = env.discarded_strips.count(lambda s: s.lookup(sent_to_detail) is not None)
  File "/home/come/Téléchargements/ATCpie/session/models/discardedStrips.py", line 72, in count
    return len([s for s in self.discarded_strips if pred is None or pred(s)])
  File "/home/come/Téléchargements/ATCpie/session/models/discardedStrips.py", line 72, in <listcomp>
    return len([s for s in self.discarded_strips if pred is None or pred(s)])
  File "/home/come/Téléchargements/ATCpie/gui/dialog/miscDialogs.py", line 244, in <lambda>
    sent = env.discarded_strips.count(lambda s: s.lookup(sent_to_detail) is not None)
AttributeError: 'tuple' object has no attribute 'lookup'
come_744
 
Posts: 9
Joined: Mon Jul 12, 2021 5:32 pm

Re: BUG: crash on environment after plane handoff  

Postby mickybadia » Sun Jul 18, 2021 8:03 pm

An extremely trivial fix. So trivial I feel sorry for it, but thanks for spotting the problem. :-)
Side note: plain bug reports not requiring any sort of discussion like this are best placed as SF tickets.
Can be marked as solved.
mickybadia
 
Posts: 475
Joined: Tue Sep 24, 2013 10:12 am


Return to ATC-pie

Who is online

Users browsing this forum: No registered users and 3 guests