Fix error handling for data construct on init.

This commit is contained in:
Nick Foster
2012-07-02 07:17:21 -07:00
parent 19436349dc
commit fe6aa0c6de
3 changed files with 15 additions and 8 deletions

View File

@@ -223,7 +223,10 @@ if __name__ == '__main__':
msg = queue.delete_head() #blocking read
for out in outputs:
out(msg.to_string())
try:
out(msg.to_string())
except ADSBError:
pass
elif runner.done:
raise KeyboardInterrupt