Skip to content
Snippets Groups Projects
Commit 52529ea5 authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Fixed Exit() to work properly.

parent 1f98c89c
No related branches found
No related tags found
1 merge request!290New Instrument class and Observatory class edits
...@@ -179,7 +179,7 @@ def upload_instrument_metadata( ...@@ -179,7 +179,7 @@ def upload_instrument_metadata(
print( print(
"More than one matching metadata objects exist, fix database before continuing" "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 # set instrument.id to prior_metadata.id to update that metadata object in the database
instrument.id = prior_metadata[0].id instrument.id = prior_metadata[0].id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment