streamer.screen: fix undefined variable icao on emty flight list
The icao variable is tested for None on line 136 but is not defined if no flight is known
This commit is contained in:
@@ -101,6 +101,7 @@ class Screen(Thread):
|
||||
icaos = np.sort(icaos)
|
||||
|
||||
for row in range(3, self.scr_h - 3):
|
||||
icao = None
|
||||
idx = row + self.offset
|
||||
|
||||
if idx > len(icaos) - 1:
|
||||
|
||||
Reference in New Issue
Block a user