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

Fixed if not None statement.

parent e37ca1f1
No related branches found
No related tags found
1 merge request!290New Instrument class and Observatory class edits
...@@ -174,7 +174,7 @@ def upload_instrument_metadata( ...@@ -174,7 +174,7 @@ def upload_instrument_metadata(
) )
prior_metadata = factory.get_metadata(query=prior_metadata) prior_metadata = factory.get_metadata(query=prior_metadata)
if prior_metadata is not None: if len(prior_metadata) != 0:
if len(prior_metadata) > 1: if len(prior_metadata) > 1:
print( print(
"More than one matching metadata objects exist, fix database before continuing" "More than one matching metadata objects exist, fix database before continuing"
......
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