Commit 578da7f5 authored by payno's avatar payno

[core][type] get_missing_keys: check if the key exists or if the contents is None

parent 0b56afdb
......@@ -942,7 +942,7 @@ class Spectrum(_Spectrum_Base):
"""Return missing keys on the spectrum"""
missing = []
for key in keys:
if key not in self:
if key not in self or self[key] is None:
if len(missing) is 0:
return None
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment