Raise exception instead of return precondition

pull/968/head
Piero Toffanin 2019-04-08 23:24:58 -04:00
rodzic 2aa03db889
commit 5c27a835df
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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