From 5c27a835df9de9ca04998e7afaddc0621d120c28 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 8 Apr 2019 23:24:58 -0400 Subject: [PATCH] Raise exception instead of return precondition --- opendm/location.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opendm/location.py b/opendm/location.py index 5229d313..4e5726b9 100644 --- a/opendm/location.py +++ b/opendm/location.py @@ -12,8 +12,7 @@ def extract_utm_coords(photos, images_path, output_coords_file): :return None """ if len(photos) == 0: - log.ODM_ERROR("No input images, cannot create coordinates file of GPS positions") - return + raise Exception("No input images, cannot create coordinates file of GPS positions") utm_zone = None hemisphere = None