Skip to content

Commit

Permalink
shutdown before getting filename
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Sep 7, 2024
1 parent 8b9d8fc commit 821395e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orthority/param_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ def _read_im_rpc_param(
executor.shutdown(wait=False)
raise
except Exception as ex:
filename = common.get_filename(file)
executor.shutdown(wait=False)
filename = common.get_filename(file)
raise RuntimeError(f"Could not read RPC tags from '{filename}'.") from ex

Check warning on line 387 in orthority/param_io.py

View check run for this annotation

Codecov / codecov/patch

orthority/param_io.py#L384-L387

Added lines #L384 - L387 were not covered by tests

return rpc_param_dict
Expand Down Expand Up @@ -505,8 +505,8 @@ def _read_im_gcps(
executor.shutdown(wait=False)
raise
except Exception as ex:
filename = common.get_filename(file)
executor.shutdown(wait=False)
filename = common.get_filename(file)
raise RuntimeError(f"Could not read GCPs from '{filename}'.") from ex

Check warning on line 510 in orthority/param_io.py

View check run for this annotation

Codecov / codecov/patch

orthority/param_io.py#L507-L510

Added lines #L507 - L510 were not covered by tests

return gcp_dict
Expand Down Expand Up @@ -1299,8 +1299,8 @@ def _read_exif(
executor.shutdown(wait=False)
raise
except Exception as ex:
filename = common.get_filename(file)
executor.shutdown(wait=False)
filename = common.get_filename(file)
raise RuntimeError(f"Could not read EXIF tags from '{filename}'.") from ex

Check warning on line 1304 in orthority/param_io.py

View check run for this annotation

Codecov / codecov/patch

orthority/param_io.py#L1301-L1304

Added lines #L1301 - L1304 were not covered by tests

exif_dict[exif_obj.filename] = exif_obj
Expand Down

0 comments on commit 821395e

Please sign in to comment.