From 77e124fc1dfa3e19abf980da42d96dfb99fa8638 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 15 May 2020 17:27:48 -0400 Subject: [PATCH] Handle empty list --- opendm/shots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendm/shots.py b/opendm/shots.py index df96b4cd..5f472a13 100644 --- a/opendm/shots.py +++ b/opendm/shots.py @@ -94,7 +94,7 @@ def get_geojson_shots_from_opensfm(reconstruction_file, geocoords_transformation raise RuntimeError("%s does not exist." % reconstruction_file) def merge_geojson_shots(geojson_shots_files, output_geojson_file): - result = None + result = {} added_files = {} for shot_file in geojson_shots_files: with open(shot_file, "r") as f: