Merge pull request #31 from Akasch/fix_screen_clear
streamer.screen: fix undefined variable icao on emty flight list
This commit is contained in:
@@ -101,6 +101,7 @@ class Screen(Thread):
|
|||||||
icaos = np.sort(icaos)
|
icaos = np.sort(icaos)
|
||||||
|
|
||||||
for row in range(3, self.scr_h - 3):
|
for row in range(3, self.scr_h - 3):
|
||||||
|
icao = None
|
||||||
idx = row + self.offset
|
idx = row + self.offset
|
||||||
|
|
||||||
if idx > len(icaos) - 1:
|
if idx > len(icaos) - 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user