Commit 029185e3 by Corey Koval

Added some error handling.

parent e8c301bf
......@@ -405,13 +405,16 @@ def update_cesium():
elif request.query.plotpts == "false":
ms.plotintersects = False
if request.query.ismobile:
rx_index = int(request.query.ismobile)
receivers[rx_index].isMobile = True
if request.query.isnotmobile:
rx_index = int(request.query.isnotmobile)
receivers[rx_index].isMobile = False
try:
if request.query.ismobile:
rx_index = int(request.query.ismobile)
receivers[rx_index].isMobile = True
if request.query.isnotmobile:
rx_index = int(request.query.isnotmobile)
receivers[rx_index].isMobile = False
except IndexError:
print("I got some bad data. Doing nothing out of spite.")
write_czml(*process_data(database_name, geofile))
return "OK"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment