From 52529ea599da6dfc2b01e1dd0ee05426516f9e65 Mon Sep 17 00:00:00 2001 From: Alex Wernle <awernle@usgs.gov> Date: Thu, 28 Mar 2024 14:56:30 -0600 Subject: [PATCH] Fixed Exit() to work properly. --- geomagio/processing/copy_instrument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geomagio/processing/copy_instrument.py b/geomagio/processing/copy_instrument.py index bc95402b..2a7b6fa0 100644 --- a/geomagio/processing/copy_instrument.py +++ b/geomagio/processing/copy_instrument.py @@ -179,7 +179,7 @@ def upload_instrument_metadata( print( "More than one matching metadata objects exist, fix database before continuing" ) - typer.Exit() + raise typer.Exit() # set instrument.id to prior_metadata.id to update that metadata object in the database instrument.id = prior_metadata[0].id -- GitLab