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:
Nils Rokita
2018-11-26 16:00:46 +01:00
parent 16c83d1505
commit de9ec43912

View File

@@ -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: