Interactive interface for browsing global, full-resolution satellite imagery
warn if no metadata config found
Jason Kentda5928ed0e59
diff --git a/tasks/python3/getVisMetadata.py b/tasks/python3/getVisMetadata.pyindex 0109a98b7..23889d97e 100755--- a/tasks/python3/getVisMetadata.py+++ b/tasks/python3/getVisMetadata.py@@ -23,6 +23,9 @@ layer_metadata = {}def get_metadata(layer_id):response = http.request('GET', gibs_url + layer_id + '.json')+ if (response.status != 200):+ print('%s WARNING: No metadata config found for [%s]' % (prog, layer_id))+ returnlayer_metadata[layer_id] = json.loads(response.data.decode('utf-8'))# Remove any props we don't expect to use