Graceful exit if station is offline or in testing

merge-requests/28/head
Cees Bassa 2019-06-25 13:58:20 +02:00
parent 9771cfed91
commit 6334d41c09
1 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,9 @@ def main():
# Get ground station information
ground_station = get_groundstation_info(ground_station_id)
if not ground_station:
sys.exit()
# Create cache
if not os.path.isdir(cache_dir):
os.mkdir(cache_dir)