Handle empty list fix

Former-commit-id: eeb48a33bc
pull/1161/head
Piero Toffanin 2020-05-15 17:28:47 -04:00
rodzic ebbbe0a576
commit dce231cb60
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -100,7 +100,7 @@ def merge_geojson_shots(geojson_shots_files, output_geojson_file):
with open(shot_file, "r") as f: with open(shot_file, "r") as f:
shots = json.loads(f.read()) shots = json.loads(f.read())
if result is None: if len(result) == 0:
for feat in shots.get('features', []): for feat in shots.get('features', []):
added_files[feat['properties']['filename']] = True added_files[feat['properties']['filename']] = True