From 5086964f37230793deb51aed66f34bd0bf3e58a4 Mon Sep 17 00:00:00 2001 From: Beto Noronha Date: Thu, 21 May 2020 11:53:23 -0300 Subject: [PATCH] fix code to search in cbers stac --- forest_monitor/stac_compose/business.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forest_monitor/stac_compose/business.py b/forest_monitor/stac_compose/business.py index 145664d..3082739 100644 --- a/forest_monitor/stac_compose/business.py +++ b/forest_monitor/stac_compose/business.py @@ -73,7 +73,7 @@ def search_kepler_stac(cls, url, collection, bbox, time=False): padrao = "L4" for i in features: - if padrao in i['id']: + if i.get('id') and padrao in i['id']: #print(i['id']) listL4.append(i)