FileNotFoundError --> IOError exception bug fix

Former-commit-id: c1d75ff4c9
pull/1161/head
Piero Toffanin 2018-10-19 18:09:26 -04:00
rodzic 19506e7ca1
commit 1607aed3b9
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -72,7 +72,7 @@ def opensfm_reconstruction_average_gsd(reconstruction_json):
a GSD estimate cannot be compute
"""
if not os.path.isfile(reconstruction_json):
raise FileNotFoundError(reconstruction_json + " does not exist.")
raise IOError(reconstruction_json + " does not exist.")
with open(reconstruction_json) as f:
data = json.load(f)